Auto merge of #22561 - richo:as_slice-as_str, r=Manishearth

This may not be quite ready to go out, I fixed some docs but suspect I missed a bunch.

I also wound up fixing a bunch of redundant `[]` suffixes, but on closer inspection I don't believe that can land until after a snapshot.
This commit is contained in:
bors 2015-03-09 21:02:50 +00:00
commit b83b26bacb
26 changed files with 63 additions and 63 deletions

View file

@ -80,7 +80,7 @@ fn main() {
.arg(format!("{} {}",
rustc,
main_file.as_str()
.unwrap()).as_slice())
.unwrap()))
.output().unwrap();
let err = String::from_utf8_lossy(result.error.as_slice());