Skip to content

Commit 8ae4788

Browse files
committed
Fix library
1 parent 5721464 commit 8ae4788

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/core/src/slice/mod.rs

+3
Original file line numberDiff line numberDiff 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],

0 commit comments

Comments
 (0)