Skip to content

Commit

Permalink
Allow if no_global_oom_handling, like Vec::leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Oct 19, 2022
1 parent 3e882e2 commit 687dd3d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,6 @@ impl String {
/// let static_ref: &'static mut str = x.leak();
/// assert_eq!(static_ref, "bucket");
/// ```
#[cfg(not(no_global_oom_handling))]
#[unstable(feature = "string_leak", issue = "102929")]
#[inline]
pub fn leak(self) -> &'static mut str {
Expand Down

0 comments on commit 687dd3d

Please sign in to comment.