jemallocator icon indicating copy to clipboard operation
jemallocator copied to clipboard

Issue compiling with "alloc_trait" feature on rustc 1.90.0

Open luxreduxdelux opened this issue 2 months ago • 1 comments

Hey, I'm getting this error when enabling the "alloc_trait" feature for the crate. Have not tested on any rustc version lower than 1.90.0.

error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: unresolved imports `core::alloc::Alloc`, `core::alloc::AllocErr`, `core::alloc::CannotReallocInPlace`, `core::alloc::Excess`
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Errors occurred in /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs from external crate
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Macro text: use core::alloc::{Alloc, AllocErr, CannotReallocInPlace, Excess};
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: no `Alloc` in `alloc`
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Errors occurred in /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs from external crate
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Macro text: use core::alloc::{Alloc, AllocErr, CannotReallocInPlace, Excess};
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: unresolved imports `core::alloc::Alloc`, `core::alloc::AllocErr`, `core::alloc::CannotReallocInPlace`, `core::alloc::Excess`
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: no `AllocErr` in `alloc`
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Errors occurred in /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs from external crate
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Macro text: use core::alloc::{Alloc, AllocErr, CannotReallocInPlace, Excess};
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: unresolved imports `core::alloc::Alloc`, `core::alloc::AllocErr`, `core::alloc::CannotReallocInPlace`, `core::alloc::Excess`
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: no `CannotReallocInPlace` in `alloc`
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Errors occurred in /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs from external crate
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Macro text: use core::alloc::{Alloc, AllocErr, CannotReallocInPlace, Excess};
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: unresolved imports `core::alloc::Alloc`, `core::alloc::AllocErr`, `core::alloc::CannotReallocInPlace`, `core::alloc::Excess`
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: no `Excess` in `alloc`
help: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Errors occurred in /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs from external crate
help: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: Macro text: use core::alloc::{Alloc, AllocErr, CannotReallocInPlace, Excess};
help: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:25: a similar name exists in the module
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:18: `#![feature]` may not be used on the stable release channel
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:18: Errors occurred in /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs from external crate
error: /home/lux/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tikv-jemallocator-0.6.0/src/lib.rs:18: Macro text: #![cfg_attr(feature = "alloc_trait", feature(allocator_api))]
error: could not compile `tikv-jemallocator` (lib) due to 2 previous errors

luxreduxdelux avatar Sep 28 '25 02:09 luxreduxdelux

Welcome @luxreduxdelux! It looks like this is your first issue to tikv/jemallocator 🎉

ti-chi-bot[bot] avatar Sep 28 '25 02:09 ti-chi-bot[bot]