This implements RFC 2480: * https://github.com/rust-lang/rfcs/pull/2480 * https://github.com/rust-lang/rfcs/blob/master/text/2480-liballoc.md Closes https://github.com/rust-lang/rust/issues/27783
15 lines
385 B
Rust
15 lines
385 B
Rust
//! The alloc Prelude
|
|
//!
|
|
//! The purpose of this module is to alleviate imports of commonly-used
|
|
//! items of the `alloc` crate by adding a glob import to the top of modules:
|
|
//!
|
|
//! ```
|
|
//! # #![allow(unused_imports)]
|
|
//! #![feature(alloc_prelude)]
|
|
//! extern crate alloc;
|
|
//! use alloc::prelude::v1::*;
|
|
//! ```
|
|
|
|
#![unstable(feature = "alloc_prelude", issue = "58935")]
|
|
|
|
pub mod v1;
|