Remove mutability from unique boxes in the AST

This commit is contained in:
Alex Crichton
2013-06-23 21:12:17 -07:00
parent b29c368674
commit 3bad7129eb
16 changed files with 30 additions and 28 deletions

View File

@@ -135,7 +135,7 @@ pub fn is_shift_binop(b: binop) -> bool {
pub fn unop_to_str(op: unop) -> ~str {
match op {
box(mt) => if mt == m_mutbl { ~"@mut " } else { ~"@" },
uniq(mt) => if mt == m_mutbl { ~"~mut " } else { ~"~" },
uniq => ~"~",
deref => ~"*",
not => ~"!",
neg => ~"-"