diff --git a/src/liballoc/prelude/mod.rs b/src/liballoc/prelude/mod.rs new file mode 100644 index 0000000000000..44a859d31ecb4 --- /dev/null +++ b/src/liballoc/prelude/mod.rs @@ -0,0 +1,15 @@ +//! 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)] +//! extern crate alloc; +//! use alloc::prelude::v1::*; +//! ``` + +#![unstable(feature = "alloc", issue = "27783")] + +pub mod v1; diff --git a/src/liballoc/prelude.rs b/src/liballoc/prelude/v1.rs similarity index 60% rename from src/liballoc/prelude.rs rename to src/liballoc/prelude/v1.rs index 6767cf89f73ba..2df330d19f8ce 100644 --- a/src/liballoc/prelude.rs +++ b/src/liballoc/prelude/v1.rs @@ -1,14 +1,6 @@ -//! The alloc Prelude +//! The first version of the prelude of `alloc` crate. //! -//! 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)] -//! extern crate alloc; -//! use alloc::prelude::*; -//! ``` +//! See the [module-level documentation](../index.html) for more. #![unstable(feature = "alloc", issue = "27783")]