summary refs log tree commit diff
path: root/library/alloc/src/string.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-21 16:21:39 +0000
committerbors <bors@rust-lang.org>2021-03-21 16:21:39 +0000
commitf82664191d0e8764b7435b9d72eb0e366b8b1464 (patch)
tree005265bf0d6d9c43fb127bc2afb038a485db5b28 /library/alloc/src/string.rs
parented75d0686e1ab674636e784268b4b7f5e03c53de (diff)
parent6f3635d87ba074308786f9e33c76fc165f41f806 (diff)
downloadrust-f82664191d0e8764b7435b9d72eb0e366b8b1464.tar.gz
rust-f82664191d0e8764b7435b9d72eb0e366b8b1464.zip
Auto merge of #83053 - oli-obk:const_stab_version, r=m-ou-se
Fix const stability `since` versions.

fixes #82085

r? `@m-ou-se`
Diffstat (limited to 'library/alloc/src/string.rs')
-rw-r--r--library/alloc/src/string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index 019b17a5945..cc2d440010b 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -360,7 +360,7 @@ impl String {
     /// let s = String::new();
     /// ```
     #[inline]
-    #[rustc_const_stable(feature = "const_string_new", since = "1.32.0")]
+    #[rustc_const_stable(feature = "const_string_new", since = "1.39.0")]
     #[stable(feature = "rust1", since = "1.0.0")]
     pub const fn new() -> String {
         String { vec: Vec::new() }