rust-lang/rust — pull request #19248 by japaric (2014-11-23 18:25:59+00:00)
Title: DSTify Str + impl Str for &S where S: Str

Just like we do with AsSlice

This comes in handy when dealing with iterator-centric APIs (`IntoIterator`!) and you want to receive an `Iterator 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)