about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-07-11 04:32:22 +0000
committerbors <bors@rust-lang.org>2023-07-11 04:32:22 +0000
commit7ba605cd90d6467bda469d1cd2148ac32ea562bf (patch)
treeff9310c9c45b53714f21338d04f168c1597c11dd /library/alloc
parent83964c156db1f444050a38b2498dbd0da6d5d503 (diff)
parent27ff8191989ff67c9e07f062d42a6ca1d1e42720 (diff)
Auto merge of #113540 - Mark-Simulacrum:beta-backport, r=Mark-Simulacrum
[beta] promote 1.72

r? `@Mark-Simulacrum`
Diffstat (limited to 'library/alloc')
-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 1c6815fa941..ad7b77f5497 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -1873,7 +1873,7 @@ impl String {
     /// let static_ref: &'static mut str = x.leak();
     /// assert_eq!(static_ref, "bucket");
     /// ```
-    #[stable(feature = "string_leak", since = "CURRENT_RUSTC_VERSION")]
+    #[stable(feature = "string_leak", since = "1.72.0")]
     #[inline]
     pub fn leak<'a>(self) -> &'a mut str {
         let slice = self.vec.leak();