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:
parent
3fcd4dca30
commit
a1531ed946
57 changed files with 316 additions and 209 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue