diff options
| author | Josh Stone <jistone@redhat.com> | 2020-08-07 13:51:46 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-08-07 13:51:46 -0700 |
| commit | a2cfc74c5fda25795683e813364bb4b63309ee0d (patch) | |
| tree | 647d7672a4b91b466659293aee3293d80c12e572 /src/test/rustdoc-ui/coverage/doc-examples.rs | |
| parent | 4d4342347b71313258a46e506ee0a258f365185c (diff) | |
| download | rust-a2cfc74c5fda25795683e813364bb4b63309ee0d.tar.gz rust-a2cfc74c5fda25795683e813364bb4b63309ee0d.zip | |
Simplify array::IntoIter
- Initialization can use `transmute_copy` to do the bitwise copy. - `as_slice` can use `get_unchecked` and `MaybeUninit::slice_get_ref`, and `as_mut_slice` can do similar. - `next` and `next_back` can use the corresponding `Range` methods. - `Clone` doesn't need any unsafety, and we can dynamically update the new range to get partial drops if `T::clone` panics.
Diffstat (limited to 'src/test/rustdoc-ui/coverage/doc-examples.rs')
0 files changed, 0 insertions, 0 deletions
