Skip to content

Issue compiling with "alloc_trait" feature on rustc 1.90.0 #145

Description

@luxreduxdelux

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions