@@ -1548,6 +1548,8 @@ fn stmt_ends_with_semi(&ast::stmt stmt) -> bool {
1548
1548
case ( ast:: expr_rec ( _, _) ) { true }
1549
1549
case ( ast:: expr_call ( _, _) ) { true }
1550
1550
case ( ast:: expr_self_method ( _) ) { false }
1551
+ case ( ast:: expr_bind ( _, _) ) { true }
1552
+ case ( ast:: expr_spawn ( _, _, _, _) ) { true }
1551
1553
case ( ast:: expr_binary ( _, _, _) ) { true }
1552
1554
case ( ast:: expr_unary ( _, _) ) { true }
1553
1555
case ( ast:: expr_lit ( _) ) { true }
@@ -1570,6 +1572,7 @@ fn stmt_ends_with_semi(&ast::stmt stmt) -> bool {
1570
1572
case ( ast:: expr_field ( _, _) ) { true }
1571
1573
case ( ast:: expr_index ( _, _) ) { true }
1572
1574
case ( ast:: expr_path ( _) ) { true }
1575
+ case ( ast:: expr_ext ( _, _, _, _) ) { true }
1573
1576
case ( ast:: expr_fail ( _) ) { true }
1574
1577
case ( ast:: expr_break) { true }
1575
1578
case ( ast:: expr_cont) { true }
@@ -1578,6 +1581,10 @@ fn stmt_ends_with_semi(&ast::stmt stmt) -> bool {
1578
1581
case ( ast:: expr_be ( _) ) { true }
1579
1582
case ( ast:: expr_log ( _, _) ) { true }
1580
1583
case ( ast:: expr_check ( _) ) { true }
1584
+ case ( ast:: expr_if_check ( _, _, _) ) { false }
1585
+ case ( ast:: expr_port) { true }
1586
+ case ( ast:: expr_chan ( _) ) { true }
1587
+ case ( ast:: expr_anon_obj ( _, _, _) ) { false }
1581
1588
case ( ast:: expr_assert ( _) ) { true }
1582
1589
}
1583
1590
}
0 commit comments