about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-11-24 11:56:34 +0000
committerbors <bors@rust-lang.org>2014-11-24 11:56:34 +0000
commit4334d3c19699c65ba8cb354f84fa40e4b678bfa6 (patch)
treef172709f8cc46aac873f07e226c4821831ad66e4 /src/rustllvm/RustWrapper.cpp
parentbad1062caaaefe0963d7b8513786c8283e74f1e7 (diff)
parent02720a4a1665ebdca6159f5189115bdf3087afbf (diff)
downloadrust-4334d3c19699c65ba8cb354f84fa40e4b678bfa6.tar.gz
rust-4334d3c19699c65ba8cb354f84fa40e4b678bfa6.zip
auto merge of #19248 : japaric/rust/str, r=alexcrichton
Just like we do with AsSlice

This comes in handy when dealing with iterator-centric APIs (`IntoIterator`!) and you want to receive an `Iterator<S> where S: Str` argument. Without this PR, e.g. you can't receive `&["a", "b"].iter()` instead you'll have to type `&["a", "b"].iter().map(|&x| x)` (A similar thing happens with `&[String]`).

r? @aturon 

Full disclaimer: I haven't run `make`/`make check` yet (All my cores are busy)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions