diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2019-03-05 11:47:52 +0100 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2019-03-05 14:44:45 +0100 |
| commit | 5d1022ad7b82168aee243d2adcbd83d1e886586f (patch) | |
| tree | f0fc0fc36bc0fb925c5423eb0d890dac29b4bb1b /src/liballoc | |
| parent | 2b49ec0bb676f324806bb271f4115c3a1c0afaf3 (diff) | |
| download | rust-5d1022ad7b82168aee243d2adcbd83d1e886586f.tar.gz rust-5d1022ad7b82168aee243d2adcbd83d1e886586f.zip | |
Rename the feature gate for alloc::prelude
… to separate it from that of the crate. New tracking issue: https://github.com/rust-lang/rust/issues/58935
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/prelude/mod.rs | 3 | ||||
| -rw-r--r-- | src/liballoc/prelude/v1.rs | 12 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/liballoc/prelude/mod.rs b/src/liballoc/prelude/mod.rs index 44a859d31ec..33cc51d1732 100644 --- a/src/liballoc/prelude/mod.rs +++ b/src/liballoc/prelude/mod.rs @@ -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; diff --git a/src/liballoc/prelude/v1.rs b/src/liballoc/prelude/v1.rs index 2df330d19f8..b6b01395ad6 100644 --- a/src/liballoc/prelude/v1.rs +++ b/src/liballoc/prelude/v1.rs @@ -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; |
