diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-09-09 11:27:42 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-09-09 11:27:42 +0200 |
| commit | a14efd1d0a2f0fa112e4359b9db1e9857589c796 (patch) | |
| tree | b67f3f00d75c41c67813ad492b06eeec3c5def20 /library/core/src/array/iter.rs | |
| parent | 656a17b44d2e7ee8096f479ed8a04baab2200cae (diff) | |
| download | rust-a14efd1d0a2f0fa112e4359b9db1e9857589c796.tar.gz rust-a14efd1d0a2f0fa112e4359b9db1e9857589c796.zip | |
Rename MaybeUninit::read to assume_init_read.
Diffstat (limited to 'library/core/src/array/iter.rs')
| -rw-r--r-- | library/core/src/array/iter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/array/iter.rs b/library/core/src/array/iter.rs index 2e8b6419eea..cafb002c01a 100644 --- a/library/core/src/array/iter.rs +++ b/library/core/src/array/iter.rs @@ -103,7 +103,7 @@ impl<T, const N: usize> Iterator for IntoIter<T, N> { // dead now (i.e. do not touch). As `idx` was the start of the // alive-zone, the alive zone is now `data[alive]` again, restoring // all invariants. - unsafe { self.data.get_unchecked(idx).read() } + unsafe { self.data.get_unchecked(idx).assume_init_read() } }) } @@ -136,7 +136,7 @@ impl<T, const N: usize> DoubleEndedIterator for IntoIter<T, N> { // dead now (i.e. do not touch). As `idx` was the end of the // alive-zone, the alive zone is now `data[alive]` again, restoring // all invariants. - unsafe { self.data.get_unchecked(idx).read() } + unsafe { self.data.get_unchecked(idx).assume_init_read() } }) } } |
