File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -463,12 +463,6 @@ impl DroplessArena {
463463 self . alloc_raw_without_grow ( layout) . unwrap ( )
464464 }
465465
466- #[ inline( never) ]
467- #[ cold]
468- fn grow_and_alloc < T > ( & self ) -> * mut u8 {
469- self . grow_and_alloc_raw ( Layout :: new :: < T > ( ) )
470- }
471-
472466 /// Allocates a byte slice with specified layout from the current memory
473467 /// chunk. Returns `None` if there is no free space left to satisfy the
474468 /// request.
@@ -517,7 +511,7 @@ impl DroplessArena {
517511 } else {
518512 // No free space left. Allocate a new chunk to satisfy the request.
519513 // On failure the grow will panic or abort.
520- self . grow_and_alloc :: < T > ( )
514+ self . grow_and_alloc_raw ( Layout :: new :: < T > ( ) )
521515 } as * mut T ;
522516
523517 unsafe {
You can’t perform that action at this time.
0 commit comments