diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-15 09:57:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-15 09:57:26 +0200 |
| commit | e6510babc786469075f76db94fedfe651072bf25 (patch) | |
| tree | 73103aa06ba2f5d620b24f62d4ce3d255a74b985 /src/rustllvm/PassWrapper.cpp | |
| parent | 3d41252fcc28d9da1005f3207462e95006c232e4 (diff) | |
| parent | 738f8487fd78a7d860be4e65eee85c9a0e957c13 (diff) | |
| download | rust-e6510babc786469075f76db94fedfe651072bf25.tar.gz rust-e6510babc786469075f76db94fedfe651072bf25.zip | |
Rollup merge of #72584 - CAD97:stabilize-58957, r=dtolnay
Stabilize vec::Drain::as_slice and add `AsRef<[T]> for Drain<'_, T>`. Tracking issue: #58957. Does not stabilize `slice::IterMut::as_slice` yet. cc @cuviper This PR proposes stabilizing just the `vec::Drain::as_slice` part of that tracking issue. My ultimate goal here: being able to use `for<T, I: Iterator<Item=T> + AsRef<[T]>> I` to refer to `vec::IntoIter`, `vec::Drain`, and eventually `array::IntoIter`, as an approximation of the set of by-value iterators that can be "previewed" as by-ref iterators. (Actually expressing that as a trait requires GAT.)
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
