mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Propagate cfg bootstrap
This commit is contained in:
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user