File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
library/alloc/src/raw_vec Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -573,7 +573,7 @@ impl<A: Allocator> RawVecInner<A> {
573
573
}
574
574
}
575
575
576
- fn try_reserve (
576
+ unsafe fn try_reserve (
577
577
& mut self ,
578
578
len : usize ,
579
579
additional : usize ,
@@ -597,7 +597,7 @@ impl<A: Allocator> RawVecInner<A> {
597
597
}
598
598
}
599
599
600
- fn try_reserve_exact (
600
+ unsafe fn try_reserve_exact (
601
601
& mut self ,
602
602
len : usize ,
603
603
additional : usize ,
@@ -636,7 +636,7 @@ impl<A: Allocator> RawVecInner<A> {
636
636
self . cap = unsafe { Cap :: new_unchecked ( cap) } ;
637
637
}
638
638
639
- fn grow_amortized (
639
+ unsafe fn grow_amortized (
640
640
& mut self ,
641
641
len : usize ,
642
642
additional : usize ,
@@ -668,7 +668,7 @@ impl<A: Allocator> RawVecInner<A> {
668
668
Ok ( ( ) )
669
669
}
670
670
671
- fn grow_exact (
671
+ unsafe fn grow_exact (
672
672
& mut self ,
673
673
len : usize ,
674
674
additional : usize ,
You can’t perform that action at this time.
0 commit comments