diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2020-09-25 19:48:24 +0100 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2020-09-25 19:52:01 +0100 |
| commit | 04a0b1d0879f7872b09cd8058a15479589ccd352 (patch) | |
| tree | d273897ad5aa505b1f3873a6fd7e112d73b0e41f /library/alloc/src | |
| parent | 323a27967abe75da79e44132e449fb36cefd240b (diff) | |
| download | rust-04a0b1d0879f7872b09cd8058a15479589ccd352.tar.gz rust-04a0b1d0879f7872b09cd8058a15479589ccd352.zip | |
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.
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index e973c3287ed..6e001b0d60a 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -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, { |
