File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -655,6 +655,7 @@ impl<T> [T] {
655
655
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
656
656
#[ inline]
657
657
#[ must_use]
658
+ #[ track_caller]
658
659
pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
659
660
where
660
661
I : SliceIndex < Self > ,
@@ -697,6 +698,7 @@ impl<T> [T] {
697
698
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
698
699
#[ inline]
699
700
#[ must_use]
701
+ #[ track_caller]
700
702
pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
701
703
where
702
704
I : SliceIndex < Self > ,
@@ -4562,6 +4564,7 @@ impl<T> [T] {
4562
4564
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
4563
4565
#[ unstable( feature = "get_many_mut" , issue = "104642" ) ]
4564
4566
#[ inline]
4567
+ #[ track_caller]
4565
4568
pub unsafe fn get_many_unchecked_mut < I , const N : usize > (
4566
4569
& mut self ,
4567
4570
indices : [ I ; N ] ,
You can’t perform that action at this time.
0 commit comments