mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Allow Vec::leak
with no_global_oom_handling
This commit is contained in:
parent
abd7744101
commit
913393a0f7
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user