summary refs log tree commit diff
path: root/library/alloc/src/string.rs
diff options
context:
space:
mode:
authorOli Scherer <github35764891676564198441@oli-obk.de>2021-03-12 13:45:13 +0000
committerOli Scherer <github35764891676564198441@oli-obk.de>2021-03-15 14:39:18 +0000
commit6f3635d87ba074308786f9e33c76fc165f41f806 (patch)
tree206dd0b64ac0f4f3490a800e76e1f54ea9f257bf /library/alloc/src/string.rs
parent0cc64a34e9823a4ce6491dc5e13e920cd4f5aa31 (diff)
downloadrust-6f3635d87ba074308786f9e33c76fc165f41f806.tar.gz
rust-6f3635d87ba074308786f9e33c76fc165f41f806.zip
Fix const stability `since` versions.
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 e2e705d7980..13dd2bc9adf 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() }