diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-05-15 16:06:58 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-23 01:29:29 +0200 |
| commit | f0ab633e4dd56ae2445ec1806d582f50f42117e9 (patch) | |
| tree | c6efd9fe396138a664ac4b382c0eef2115fde179 /src/libsyntax/parse | |
| parent | 42accc99e6c4ad83876460afbda9d0adab750930 (diff) | |
| download | rust-f0ab633e4dd56ae2445ec1806d582f50f42117e9.tar.gz rust-f0ab633e4dd56ae2445ec1806d582f50f42117e9.zip | |
let_chains: Remove ast::ExprKind::{IfLet, WhileLet} from visitors and introduce ::Let.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index dfd6f451c28..6ebfab3a133 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -14,11 +14,9 @@ use crate::ast; pub fn expr_requires_semi_to_be_stmt(e: &ast::Expr) -> bool { match e.node { ast::ExprKind::If(..) | - ast::ExprKind::IfLet(..) | ast::ExprKind::Match(..) | ast::ExprKind::Block(..) | ast::ExprKind::While(..) | - ast::ExprKind::WhileLet(..) | ast::ExprKind::Loop(..) | ast::ExprKind::ForLoop(..) | ast::ExprKind::TryBlock(..) => false, |
