1
Fork 0

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

@ -1740,7 +1740,7 @@ impl<T: Iterator<char>> Builder<T> {
Some(NumberValue(n)) => { Ok(Number(n)) }
Some(BooleanValue(b)) => { Ok(Boolean(b)) }
Some(StringValue(ref mut s)) => {
let mut temp = ~"";
let mut temp = "".to_owned();
swap(s, &mut temp);
Ok(String(temp))
}