1
Fork 0

rm const traits in libcore

This commit is contained in:
Deadbeef 2023-04-16 06:49:27 +00:00
parent 2a71115261
commit 76dbe29104
58 changed files with 475 additions and 868 deletions

View file

@ -1654,7 +1654,7 @@ impl<T> *const [T] {
#[inline]
pub const unsafe fn get_unchecked<I>(self, index: I) -> *const I::Output
where
I: ~const SliceIndex<[T]>,
I: SliceIndex<[T]>,
{
// SAFETY: the caller ensures that `self` is dereferenceable and `index` in-bounds.
unsafe { index.get_unchecked(self) }