File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: ea5dc54c3f0444fd3f20191fa1b1d94372c74c65
2
+ refs/heads/master: 77f4c52c3ed5a172cd0c3dbc28f1043dab5cf97d
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ impure fn print_expr(ps s, @ast.expr expr) {
308
308
commasep[ ast. elt ] ( s, exprs, f) ;
309
309
pclose ( s) ;
310
310
}
311
- case ( ast. expr_rec ( ?fields, _ , _) ) {
311
+ case ( ast. expr_rec ( ?fields, ?wth , _) ) {
312
312
impure fn print_field ( ps s, ast. field field ) {
313
313
hbox ( s) ;
314
314
if ( field. mut == ast. mut ) { wrd1 ( s, "mutable" ) ; }
@@ -321,6 +321,16 @@ impure fn print_expr(ps s, @ast.expr expr) {
321
321
popen ( s) ;
322
322
auto f = print_field;
323
323
commasep[ ast. field ] ( s, fields, f) ;
324
+ alt ( wth) {
325
+ case ( option. some [ @ast. expr ] ( ?expr) ) {
326
+ if ( _vec. len [ ast. field ] ( fields) > 0 u) { space ( s) ; }
327
+ hbox ( s) ;
328
+ wrd1 ( s, "with" ) ;
329
+ print_expr ( s, expr) ;
330
+ end ( s) ;
331
+ }
332
+ case ( _) { }
333
+ }
324
334
pclose ( s) ;
325
335
}
326
336
case ( ast. expr_call ( ?func, ?args, _) ) {
You can’t perform that action at this time.
0 commit comments