Skip to content

Commit 5d1022a

Browse files
committed
Rename the feature gate for alloc::prelude
… to separate it from that of the crate. New tracking issue: #58935
1 parent 2b49ec0 commit 5d1022a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/liballoc/prelude/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
//! ```
77
//! # #![allow(unused_imports)]
88
//! # #![feature(alloc)]
9+
//! #![feature(alloc_prelude)]
910
//! extern crate alloc;
1011
//! use alloc::prelude::v1::*;
1112
//! ```
1213
13-
#![unstable(feature = "alloc", issue = "27783")]
14+
#![unstable(feature = "alloc_prelude", issue = "58935")]
1415

1516
pub mod v1;

src/liballoc/prelude/v1.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
//!
33
//! See the [module-level documentation](../index.html) for more.
44
5-
#![unstable(feature = "alloc", issue = "27783")]
5+
#![unstable(feature = "alloc_prelude", issue = "58935")]
66

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

0 commit comments

Comments
 (0)