Skip to content

Commit 913393a

Browse files
committed
Allow Vec::leak with no_global_oom_handling
1 parent abd7744 commit 913393a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: library/alloc/src/vec/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2193,7 +2193,6 @@ impl<T, A: Allocator> Vec<T, A> {
21932193
/// static_ref[0] += 1;
21942194
/// assert_eq!(static_ref, &[2, 2, 3]);
21952195
/// ```
2196-
#[cfg(not(no_global_oom_handling))]
21972196
#[stable(feature = "vec_leak", since = "1.47.0")]
21982197
#[inline]
21992198
pub fn leak<'a>(self) -> &'a mut [T]

0 commit comments

Comments
 (0)