rm const traits in libcore
This commit is contained in:
parent
2a71115261
commit
76dbe29104
58 changed files with 475 additions and 868 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue