about summary refs log tree commit diff
path: root/src/visitor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/visitor.rs')
-rw-r--r--src/visitor.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/visitor.rs b/src/visitor.rs
index 534b2c877fd..6114dfff077 100644
--- a/src/visitor.rs
+++ b/src/visitor.rs
@@ -507,12 +507,8 @@ fn semicolon_for_stmt(stmt: &ast::Stmt) -> bool {
             match expr.node {
                 ast::Expr_::ExprWhile(..) |
                 ast::Expr_::ExprWhileLet(..) |
-                ast::Expr_::ExprIf(..) |
-                ast::Expr_::ExprIfLet(..) |
-                ast::Expr_::ExprBlock(..) |
                 ast::Expr_::ExprLoop(..) |
-                ast::Expr_::ExprForLoop(..) |
-                ast::Expr_::ExprMatch(..) => false,
+                ast::Expr_::ExprForLoop(..) => false,
                 _ => true,
             }
         }