librustc: Remove @mut support from the parser

This commit is contained in:
Patrick Walton
2013-12-31 12:55:39 -08:00
parent 88281290ff
commit 82a09b9a04
20 changed files with 52 additions and 81 deletions

View File

@@ -137,13 +137,13 @@ pub fn is_shift_binop(b: BinOp) -> bool {
}
}
pub fn unop_to_str(op: UnOp) -> ~str {
pub fn unop_to_str(op: UnOp) -> &'static str {
match op {
UnBox(mt) => if mt == MutMutable { ~"@mut " } else { ~"@" },
UnUniq => ~"~",
UnDeref => ~"*",
UnNot => ~"!",
UnNeg => ~"-"
UnBox => "@",
UnUniq => "~",
UnDeref => "*",
UnNot => "!",
UnNeg => "-",
}
}