File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -655,6 +655,7 @@ impl<T> [T] {
655655 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
656656 #[ inline]
657657 #[ must_use]
658+ #[ track_caller]
658659 pub unsafe fn get_unchecked < I > ( & self , index : I ) -> & I :: Output
659660 where
660661 I : SliceIndex < Self > ,
@@ -697,6 +698,7 @@ impl<T> [T] {
697698 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
698699 #[ inline]
699700 #[ must_use]
701+ #[ track_caller]
700702 pub unsafe fn get_unchecked_mut < I > ( & mut self , index : I ) -> & mut I :: Output
701703 where
702704 I : SliceIndex < Self > ,
@@ -4562,6 +4564,7 @@ impl<T> [T] {
45624564 /// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
45634565 #[ unstable( feature = "get_many_mut" , issue = "104642" ) ]
45644566 #[ inline]
4567+ #[ track_caller]
45654568 pub unsafe fn get_many_unchecked_mut < I , const N : usize > (
45664569 & mut self ,
45674570 indices : [ I ; N ] ,
You can’t perform that action at this time.
0 commit comments