Skip to content

Commit 6c3dbb9

Browse files
committed
Remove cfg(not(no_global_oom_handling)) from rawvecinner::shrink
1 parent 17503ff commit 6c3dbb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • library/alloc/src/raw_vec

library/alloc/src/raw_vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ impl<A: Allocator> RawVecInner<A> {
807807
/// initially construct `self`
808808
/// - `elem_layout`'s size must be a multiple of its alignment
809809
/// - `cap` must be less than or equal to `self.capacity(elem_layout.size())`
810-
#[cfg(not(no_global_oom_handling))]
810+
#[cfg(no_global_oom_handling)]
811811
#[inline]
812812
unsafe fn shrink(&mut self, cap: usize, elem_layout: Layout) -> Result<(), TryReserveError> {
813813
assert!(cap <= self.capacity(elem_layout.size()), "Tried to shrink to a larger capacity");

0 commit comments

Comments
 (0)