File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1683,6 +1683,8 @@ fn stmt_ends_with_semi(@ast.stmt stmt) -> bool {
1683
1683
case ( ast. expr_index ( _, _, _) ) { ret true ; }
1684
1684
case ( ast. expr_path ( _, _, _) ) { ret true ; }
1685
1685
case ( ast. expr_fail ) { ret true ; }
1686
+ case ( ast. expr_break ) { ret true ; }
1687
+ case ( ast. expr_cont ) { ret true ; }
1686
1688
case ( ast. expr_ret ( _) ) { ret true ; }
1687
1689
case ( ast. expr_put ( _) ) { ret true ; }
1688
1690
case ( ast. expr_be ( _) ) { ret true ; }
Original file line number Diff line number Diff line change @@ -553,6 +553,12 @@ impure fn print_expr(ps s, &@ast.expr expr) {
553
553
case ( ast. expr_fail ) {
554
554
wrd ( s. s , "fail" ) ;
555
555
}
556
+ case ( ast. expr_break ) {
557
+ wrd ( s. s , "break" ) ;
558
+ }
559
+ case ( ast. expr_cont ) {
560
+ wrd ( s. s , "cont" ) ;
561
+ }
556
562
case ( ast. expr_ret ( ?result) ) {
557
563
wrd ( s. s , "ret" ) ;
558
564
alt ( result) {
You can’t perform that action at this time.
0 commit comments