diff options
| author | bors <bors@rust-lang.org> | 2016-08-16 19:44:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-16 19:44:10 -0700 |
| commit | 9376da6f77e8b7ed204ee704b29e96213b69d0f1 (patch) | |
| tree | 5a4db468b06bcd80143506bbcc1597c876aa2a7a /src/rustllvm/RustWrapper.cpp | |
| parent | 1bf5fa3269ba32ae21e349ac675bdedcc7e99a66 (diff) | |
| parent | dc22186efb7d6ea5fff2fc1f6d39684ce9633bf7 (diff) | |
| download | rust-9376da6f77e8b7ed204ee704b29e96213b69d0f1.tar.gz rust-9376da6f77e8b7ed204ee704b29e96213b69d0f1.zip | |
Auto merge of #35559 - frewsxcv:slice-iter-as-ref, r=alexcrichton
Implement `AsRef<[T]>` for `std::slice::Iter`. `AsRef` is designed for conversions that are "cheap" (as per the API docs). It is the case that retrieving the underlying data of `std::slice::Iter` is cheap. In my opinion, there's no ambiguity about what slice data will be returned, otherwise, I would be more cautious about implementing `AsRef`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
