diff options
| author | bors <bors@rust-lang.org> | 2023-07-11 04:32:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-11 04:32:22 +0000 |
| commit | 7ba605cd90d6467bda469d1cd2148ac32ea562bf (patch) | |
| tree | ff9310c9c45b53714f21338d04f168c1597c11dd /library/alloc | |
| parent | 83964c156db1f444050a38b2498dbd0da6d5d503 (diff) | |
| parent | 27ff8191989ff67c9e07f062d42a6ca1d1e42720 (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.rs | 2 |
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(); |
