Allow Vec::leak with no_global_oom_handling

This commit is contained in:
Chris Denton 2022-10-17 17:12:32 +01:00
parent abd7744101
commit 913393a0f7
No known key found for this signature in database
GPG key ID: 713472F2F45627DE

View file

@ -2193,7 +2193,6 @@ pub fn resize_with<F>(&mut self, new_len: usize, f: F)
/// 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]