librustc: Remove the broken overloaded assign-ops from the language.

They evaluated the receiver twice. They should be added back with
`AddAssign`, `SubAssign`, etc., traits.
This commit is contained in:
Patrick Walton 2013-06-11 19:13:42 -07:00 committed by Corey Richardson
parent 3fcd4dca30
commit a1531ed946
57 changed files with 316 additions and 209 deletions

View file

@ -4257,8 +4257,12 @@ impl Parser {
// FAILURE TO PARSE ITEM
if visibility != inherited {
let mut s = ~"unmatched visibility `";
s += if visibility == public { "pub" } else { "priv" };
s += "`";
if visibility == public {
s.push_str("pub")
} else {
s.push_str("priv")
}
s.push_char('`');
self.span_fatal(*self.last_span, s);
}
return iovi_none;