Skip to content

Commit

Permalink
Rename the feature gate for alloc::prelude
Browse files Browse the repository at this point in the history
… to separate it from that of the crate.

New tracking issue: #58935
  • Loading branch information
SimonSapin committed Mar 5, 2019
1 parent 2b49ec0 commit 5d1022a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/liballoc/prelude/mod.rs
Expand Up @@ -6,10 +6,11 @@
//! ```
//! # #![allow(unused_imports)]
//! # #![feature(alloc)]
//! #![feature(alloc_prelude)]
//! extern crate alloc;
//! use alloc::prelude::v1::*;
//! ```

#![unstable(feature = "alloc", issue = "27783")]
#![unstable(feature = "alloc_prelude", issue = "58935")]

pub mod v1;
12 changes: 6 additions & 6 deletions src/liballoc/prelude/v1.rs
Expand Up @@ -2,10 +2,10 @@
//!
//! See the [module-level documentation](../index.html) for more.

#![unstable(feature = "alloc", issue = "27783")]
#![unstable(feature = "alloc_prelude", issue = "58935")]

#[unstable(feature = "alloc", issue = "27783")] pub use crate::borrow::ToOwned;
#[unstable(feature = "alloc", issue = "27783")] pub use crate::boxed::Box;
#[unstable(feature = "alloc", issue = "27783")] pub use crate::slice::SliceConcatExt;
#[unstable(feature = "alloc", issue = "27783")] pub use crate::string::{String, ToString};
#[unstable(feature = "alloc", issue = "27783")] pub use crate::vec::Vec;
#[unstable(feature = "alloc_prelude", issue = "58935")] pub use crate::borrow::ToOwned;
#[unstable(feature = "alloc_prelude", issue = "58935")] pub use crate::boxed::Box;
#[unstable(feature = "alloc_prelude", issue = "58935")] pub use crate::slice::SliceConcatExt;
#[unstable(feature = "alloc_prelude", issue = "58935")] pub use crate::string::{String, ToString};
#[unstable(feature = "alloc_prelude", issue = "58935")] pub use crate::vec::Vec;

0 comments on commit 5d1022a

Please sign in to comment.