From 82184440ecd33e87cd03a8f7c70af2ad95d5400f Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Wed, 18 Dec 2019 12:00:59 -0500 Subject: Propagate cfg bootstrap --- src/liballoc/string.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/liballoc/string.rs') 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() } -- cgit 1.4.1-3-g733a5