Lines Matching refs:new_layout
440 let new_layout = Layout::array::<T>(cap); in grow_amortized() localVariable
443 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_amortized()
459 let new_layout = Layout::array::<T>(cap); in grow_exact() localVariable
462 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_exact()
487 let new_layout = Layout::from_size_align_unchecked(new_size, layout.align()); in shrink() localVariable
489 .shrink(ptr, layout, new_layout) in shrink()
490 .map_err(|_| AllocError { layout: new_layout, non_exhaustive: () })? in shrink()
504 new_layout: Result<Layout, LayoutError>, in finish_grow()
512 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow() localVariable
514 alloc_guard(new_layout.size())?; in finish_grow()
517 debug_assert_eq!(old_layout.align(), new_layout.align()); in finish_grow()
520 intrinsics::assume(old_layout.align() == new_layout.align()); in finish_grow()
521 alloc.grow(ptr, old_layout, new_layout) in finish_grow()
524 alloc.allocate(new_layout) in finish_grow()
527 memory.map_err(|_| AllocError { layout: new_layout, non_exhaustive: () }.into()) in finish_grow()