diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-29 12:36:07 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-16 16:45:16 +0200 |
| commit | 9b3e11f635c0354040ce515ac0ed4fade6fe928f (patch) | |
| tree | 6e8b3b7b7f9b3cc5e3a875cc39069f2b3d647d16 /src/liballoc | |
| parent | d5fe5831ecc82d2705110810261b79ae4040c403 (diff) | |
| download | rust-9b3e11f635c0354040ce515ac0ed4fade6fe928f.tar.gz rust-9b3e11f635c0354040ce515ac0ed4fade6fe928f.zip | |
Const-stabilize `String::new`.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index b65f191836e..1166e7b5df2 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -369,7 +369,7 @@ impl String { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] - #[rustc_const_unstable(feature = "const_string_new")] + #[cfg_attr(bootstrap, rustc_const_unstable(feature = "const_string_new"))] pub const fn new() -> String { String { vec: Vec::new() } } |
