Skip to content

Commit 5ba012f

Browse files
committed
Add missing alt arm to expr_if pretty-printer
1 parent 0d60918 commit 5ba012f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comp/pretty/pprust.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ impure fn print_expr(ps s, @ast.expr expr) {
384384
wrd1(s, "else");
385385
print_block(s, blk);
386386
}
387+
case (_) { /* fall through */ }
387388
}
388389
}
389390
case (ast.expr_while(?test,?block,_)) {

0 commit comments

Comments
 (0)