librustc: Remove @mut support from the parser
This commit is contained in:
parent
88281290ff
commit
82a09b9a04
20 changed files with 52 additions and 81 deletions
|
|
@ -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 => "-",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue