about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-08-16 19:44:10 -0700
committerGitHub <noreply@github.com>2016-08-16 19:44:10 -0700
commit9376da6f77e8b7ed204ee704b29e96213b69d0f1 (patch)
tree5a4db468b06bcd80143506bbcc1597c876aa2a7a /src/rustllvm/RustWrapper.cpp
parent1bf5fa3269ba32ae21e349ac675bdedcc7e99a66 (diff)
parentdc22186efb7d6ea5fff2fc1f6d39684ce9633bf7 (diff)
downloadrust-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