diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-18 12:00:59 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-12-18 12:16:19 -0500 |
| commit | 82184440ecd33e87cd03a8f7c70af2ad95d5400f (patch) | |
| tree | 1eda0bfec40ffa7bc2d180c8182cfa81912df2dd /src/liballoc | |
| parent | 6a400ee14967a0210c31a6e272d56cbbb2b372dd (diff) | |
| download | rust-82184440ecd33e87cd03a8f7c70af2ad95d5400f.tar.gz rust-82184440ecd33e87cd03a8f7c70af2ad95d5400f.zip | |
Propagate cfg bootstrap
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/collections/linked_list.rs | 5 | ||||
| -rw-r--r-- | src/liballoc/lib.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/string.rs | 5 | ||||
| -rw-r--r-- | src/liballoc/vec.rs | 5 |
4 files changed, 3 insertions, 14 deletions
diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs index 4a74a479e71..5a6d4ee2aea 100644 --- a/src/liballoc/collections/linked_list.rs +++ b/src/liballoc/collections/linked_list.rs @@ -275,10 +275,7 @@ impl<T> LinkedList<T> { /// let list: LinkedList<u32> = LinkedList::new(); /// ``` #[inline] - #[cfg_attr( - not(bootstrap), - rustc_const_stable(feature = "const_linked_list_new", since = "1.32.0"), - )] + #[rustc_const_stable(feature = "const_linked_list_new", since = "1.32.0")] #[stable(feature = "rust1", since = "1.0.0")] pub const fn new() -> Self { LinkedList { diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index d828e374a7b..0137275bc15 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -116,8 +116,6 @@ #![feature(unsize)] #![feature(unsized_locals)] #![feature(allocator_internals)] -#![cfg_attr(bootstrap, feature(on_unimplemented))] -#![cfg_attr(bootstrap, feature(rustc_const_unstable))] #![feature(slice_partition_dedup)] #![feature(maybe_uninit_extra, maybe_uninit_slice)] #![feature(alloc_layout_extra)] diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index bf9bbba4753..f880f5915a3 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -367,10 +367,7 @@ impl String { /// let s = String::new(); /// ``` #[inline] - #[cfg_attr( - not(bootstrap), - rustc_const_stable(feature = "const_string_new", since = "1.32.0"), - )] + #[rustc_const_stable(feature = "const_string_new", since = "1.32.0")] #[stable(feature = "rust1", since = "1.0.0")] pub const fn new() -> String { String { vec: Vec::new() } diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 2ad4e22884e..19c95e20793 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -315,10 +315,7 @@ impl<T> Vec<T> { /// let mut vec: Vec<i32> = Vec::new(); /// ``` #[inline] - #[cfg_attr( - not(bootstrap), - rustc_const_stable(feature = "const_vec_new", since = "1.32.0"), - )] + #[rustc_const_stable(feature = "const_vec_new", since = "1.32.0")] #[stable(feature = "rust1", since = "1.0.0")] pub const fn new() -> Vec<T> { Vec { |
