about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/doc-examples.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2020-08-07 13:51:46 -0700
committerJosh Stone <jistone@redhat.com>2020-08-07 13:51:46 -0700
commita2cfc74c5fda25795683e813364bb4b63309ee0d (patch)
tree647d7672a4b91b466659293aee3293d80c12e572 /src/test/rustdoc-ui/coverage/doc-examples.rs
parent4d4342347b71313258a46e506ee0a258f365185c (diff)
downloadrust-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