]> git.proxmox.com Git - rustc.git/blobdiff - library/alloc/src/raw_vec.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / library / alloc / src / raw_vec.rs
index 2e2c9b76bd4ba6a1d74d73f6935b8961adfaad8f..d11d4031f77548e92e3b61dfe22eaffff3b03efa 100644 (file)
@@ -463,7 +463,6 @@ impl<T, A: Allocator> RawVec<T, A> {
         Ok(())
     }
 
-    #[cfg(not(no_global_oom_handling))]
     fn shrink(&mut self, amount: usize) -> Result<(), TryReserveError> {
         assert!(amount <= self.capacity(), "Tried to shrink to a larger capacity");