1
Fork 0

Rename Iterator::get_unchecked

It's possible for method resolution to pick this method over a lower
priority stable method,  causing compilation errors. Since this method
is permanently unstable, give it a name that is very unlikely to be used
in user code.
This commit is contained in:
Matthew Jasper 2020-09-25 19:48:24 +01:00
parent 323a27967a
commit 04a0b1d087
8 changed files with 66 additions and 58 deletions

View file

@ -2981,7 +2981,7 @@ impl<T> Iterator for IntoIter<T> {
self.len()
}
unsafe fn get_unchecked(&mut self, i: usize) -> Self::Item
unsafe fn __iterator_get_unchecked(&mut self, i: usize) -> Self::Item
where
Self: TrustedRandomAccess,
{