File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
trunk/src/comp/syntax/print Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a4cf804671761f05445d71510a730563f07fde84
2
+ refs/heads/master: 0186176ae989cc5ccce1cf90322c567eee084dbf
Original file line number Diff line number Diff line change @@ -286,7 +286,11 @@ fn print_type(s: &ps, ty: &ast::ty) {
286
286
print_type ( s, * mt. ty ) ;
287
287
if parens { pclose ( s) ; }
288
288
word ( s. s , "[" ) ;
289
- print_mutability ( s, mt. mut ) ;
289
+ alt mt. mut {
290
+ ast:: mut. { word ( s. s , "mutable" ) ; }
291
+ ast:: maybe_mut. { word ( s. s , "mutable?" ) ; }
292
+ ast:: imm. { }
293
+ }
290
294
word ( s. s , "]" ) ;
291
295
}
292
296
ast:: ty_ptr ( mt) { word ( s. s , "*" ) ; print_mt ( s, mt) ; }
@@ -673,7 +677,10 @@ fn print_expr(s: &ps, expr: &@ast::expr) {
673
677
ast : : sk_rc. { word ( s. s , "[" ) ; }
674
678
ast:: sk_unique. { word ( s. s , "~[" ) ; }
675
679
}
676
- if mut == ast:: mut { word_nbsp ( s, "mutable" ) ; }
680
+ if mut == ast:: mut {
681
+ word ( s. s , "mutable" ) ;
682
+ if ivec:: len ( exprs) > 0 u { nbsp ( s) ; }
683
+ }
677
684
commasep_exprs ( s, inconsistent, exprs) ;
678
685
word ( s. s , "]" ) ;
679
686
end ( s) ;
You can’t perform that action at this time.
0 commit comments