Skip to content

Commit

Permalink
Allow Vec::leak with no_global_oom_handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Oct 17, 2022
1 parent abd7744 commit 913393a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,6 @@ impl<T, A: Allocator> Vec<T, A> {
/// static_ref[0] += 1;
/// assert_eq!(static_ref, &[2, 2, 3]);
/// ```
#[cfg(not(no_global_oom_handling))]
#[stable(feature = "vec_leak", since = "1.47.0")]
#[inline]
pub fn leak<'a>(self) -> &'a mut [T]
Expand Down

0 comments on commit 913393a

Please sign in to comment.