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 {
463
463
self . alloc_raw_without_grow ( layout) . unwrap ( )
464
464
}
465
465
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
-
472
466
/// Allocates a byte slice with specified layout from the current memory
473
467
/// chunk. Returns `None` if there is no free space left to satisfy the
474
468
/// request.
@@ -517,7 +511,7 @@ impl DroplessArena {
517
511
} else {
518
512
// No free space left. Allocate a new chunk to satisfy the request.
519
513
// On failure the grow will panic or abort.
520
- self . grow_and_alloc :: < T > ( )
514
+ self . grow_and_alloc_raw ( Layout :: new :: < T > ( ) )
521
515
} as * mut T ;
522
516
523
517
unsafe {
You can’t perform that action at this time.
0 commit comments