Skip to content

Commit

Permalink
Fix library
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Dec 30, 2024
1 parent 5721464 commit 8ae4788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ impl<T> [T] {
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
#[must_use]
#[track_caller]
pub unsafe fn get_unchecked<I>(&self, index: I) -> &I::Output
where
I: SliceIndex<Self>,
Expand Down Expand Up @@ -697,6 +698,7 @@ impl<T> [T] {
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
#[must_use]
#[track_caller]
pub unsafe fn get_unchecked_mut<I>(&mut self, index: I) -> &mut I::Output
where
I: SliceIndex<Self>,
Expand Down Expand Up @@ -4562,6 +4564,7 @@ impl<T> [T] {
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
#[unstable(feature = "get_many_mut", issue = "104642")]
#[inline]
#[track_caller]
pub unsafe fn get_many_unchecked_mut<I, const N: usize>(
&mut self,
indices: [I; N],
Expand Down

0 comments on commit 8ae4788

Please sign in to comment.