about summary refs log tree commit diff
path: root/src/libsyntax/parse/classify.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-09-30 23:17:20 +0000
committerbors <bors@rust-lang.org>2014-09-30 23:17:20 +0000
commit57a05cf49b3149427e3fe190c07f8343a29ad86c (patch)
treee936d71b10c6f881337d44a960e1b8901cd50b38 /src/libsyntax/parse/classify.rs
parent88d1a22f76a774b2df3c904ceb54c86e58a859c3 (diff)
parente723051a2eb840a710f2b79afc1b42b0b707d0e4 (diff)
downloadrust-57a05cf49b3149427e3fe190c07f8343a29ad86c.tar.gz
rust-57a05cf49b3149427e3fe190c07f8343a29ad86c.zip
auto merge of #17634 : jakub-/rust/if_let, r=kballard
Continuation of https://github.com/rust-lang/rust/pull/16741.
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
-rw-r--r--src/libsyntax/parse/classify.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs
index cdd221aca7c..cb57318445e 100644
--- a/src/libsyntax/parse/classify.rs
+++ b/src/libsyntax/parse/classify.rs
@@ -24,6 +24,7 @@ use ast;
 pub fn expr_requires_semi_to_be_stmt(e: &ast::Expr) -> bool {
     match e.node {
         ast::ExprIf(..)
+        | ast::ExprIfLet(..)
         | ast::ExprMatch(..)
         | ast::ExprBlock(_)
         | ast::ExprWhile(..)