Skip to content

Commit 687dd3d

Browse files
committed
Allow if no_global_oom_handling, like Vec::leak.
1 parent 3e882e2 commit 687dd3d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

library/alloc/src/string.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,6 @@ impl String {
18721872
/// let static_ref: &'static mut str = x.leak();
18731873
/// assert_eq!(static_ref, "bucket");
18741874
/// ```
1875-
#[cfg(not(no_global_oom_handling))]
18761875
#[unstable(feature = "string_leak", issue = "102929")]
18771876
#[inline]
18781877
pub fn leak(self) -> &'static mut str {

0 commit comments

Comments
 (0)