diff options
| author | bors <bors@rust-lang.org> | 2014-11-25 06:51:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-25 06:51:38 +0000 |
| commit | 0c1d853fba0068f9fd34b43a565ded01b199506c (patch) | |
| tree | 1e52456012532a6ea65567f521bbc655c27be763 /src/rustllvm/RustWrapper.cpp | |
| parent | 5f9741e62d7cfe26ca94a28716a95bc03d74e87a (diff) | |
| parent | b86a7808c74fa0da1f1fcb9b7df760314f9e4104 (diff) | |
| download | rust-0c1d853fba0068f9fd34b43a565ded01b199506c.tar.gz rust-0c1d853fba0068f9fd34b43a565ded01b199506c.zip | |
auto merge of #18966 : huonw/rust/iter2slice, r=aturon
A slice iterator is isomorphic to a slice, just with a slightly different form: storing start and end pointers rather than start pointer and length. This patch reflects this by making converting between them as easy as `iter.as_slice()` (or even `iter[]` if the shorter lifetime is ok). That is, `slice.iter().as_slice() == slice`. r? @aturon
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
