about summary refs log tree commit diff
path: root/library/alloc/src/vec
diff options
context:
space:
mode:
authorChris Denton <christophersdenton@gmail.com>2022-10-17 17:12:32 +0100
committerChris Denton <christophersdenton@gmail.com>2022-10-17 17:12:32 +0100
commit913393a0f704a8aefd21fa1ad5f35eb23a1655ed (patch)
tree1ebd49a27d49795fd9656b3529794b3f24cf4ded /library/alloc/src/vec
parentabd77441010d74430be5c34a2e62002e578fa165 (diff)
downloadrust-913393a0f704a8aefd21fa1ad5f35eb23a1655ed.tar.gz
rust-913393a0f704a8aefd21fa1ad5f35eb23a1655ed.zip
Allow `Vec::leak` with `no_global_oom_handling`
Diffstat (limited to 'library/alloc/src/vec')
-rw-r--r--library/alloc/src/vec/mod.rs1
1 files changed, 0 insertions, 1 deletions
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 @@ 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]