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:
parent
323a27967a
commit
04a0b1d087
8 changed files with 66 additions and 58 deletions
|
@ -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,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue