aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty/pprust.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp/pretty/pprust.rs')
-rw-r--r--src/comp/pretty/pprust.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs
index f2e52d72..6f5ea096 100644
--- a/src/comp/pretty/pprust.rs
+++ b/src/comp/pretty/pprust.rs
@@ -58,8 +58,10 @@ impure fn commasep[IN](ps s, vec[IN] elts, impure fn (ps, &IN) op) {
}
impure fn print_mt(ps s, &ast.mt mt) {
- if (mt.mut == ast.mut) {
- wrd1(s, "mutable");
+ alt (mt.mut) {
+ case (ast.mut) { wrd1(s, "mutable"); }
+ case (ast.maybe_mut) { wrd1(s, "mutable?"); }
+ case (ast.imm) { /* nothing */ }
}
print_type(s, mt.ty);
}