diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-06-23 21:12:17 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-06-29 08:36:25 -0700 |
| commit | 3bad7129ebb13d7a4c0a7965aeb5bd536cc0f5f0 (patch) | |
| tree | 7c3ae5ff601a9cae33459eccaddc7d12cc76f6e2 /src/libsyntax/ast_util.rs | |
| parent | b29c36867418ea551b23c767f45454eea4623d79 (diff) | |
| download | rust-3bad7129ebb13d7a4c0a7965aeb5bd536cc0f5f0.tar.gz rust-3bad7129ebb13d7a4c0a7965aeb5bd536cc0f5f0.zip | |
Remove mutability from unique boxes in the AST
Diffstat (limited to 'src/libsyntax/ast_util.rs')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index 9439f45be21..ee7c7180f8d 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -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 => ~"-" |
