Propagate cfg bootstrap

This commit is contained in:
Mark Rousskov
2019-12-18 12:00:59 -05:00
parent 6a400ee149
commit 82184440ec
37 changed files with 169 additions and 541 deletions
+1 -4
View File
@@ -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() }