After https://github.com/rust-lang/rust/issues/50605, `core` and/or `std` are added to the extern prelude when the feature `extern_prelude` is enabled. It seems to me that if, additionally, the feature `alloc` is enabled, `alloc` should be added to the prelude too. # Meta `rustc 1.30.0-nightly (20dc0c507 2018-09-19)`