From 913393a0f704a8aefd21fa1ad5f35eb23a1655ed Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Mon, 17 Oct 2022 17:12:32 +0100 Subject: [PATCH] Allow `Vec::leak` with `no_global_oom_handling` --- library/alloc/src/vec/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index b2bb7a5b2e6..b5b2eb0ece0 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2193,7 +2193,6 @@ pub fn resize_with(&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]