librustc: Remove ~"string" and &"string" from the language

This commit is contained in:
Patrick Walton
2014-04-30 16:49:12 -07:00
parent a3f9f37014
commit 4baff4e15f
11 changed files with 58 additions and 72 deletions

View File

@@ -534,7 +534,7 @@ impl<T: Writer> ConsoleTestState<T> {
pub fn write_run_start(&mut self, len: uint) -> io::IoResult<()> {
self.total = len;
let noun = if len != 1 { &"tests" } else { &"test" };
let noun = if len != 1 { "tests" } else { "test" };
self.write_plain(format!("\nrunning {} {}\n", len, noun))
}