From e7c7f5f07139cd4afe6e8db13942a0ec250ded70 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 6 Jun 2018 22:03:42 -0400 Subject: [PATCH] Allowing attributes to be on if let statements --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 95d519eae58..4fdfc74ca5d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2597,7 +2597,7 @@ pub fn parse_dot_or_call_expr_with(&mut self, attrs.extend::>(expr.attrs.into()); expr.attrs = attrs; match expr.node { - ExprKind::If(..) | ExprKind::IfLet(..) => { + ExprKind::If(..) => { if !expr.attrs.is_empty() { // Just point to the first attribute in there... let span = expr.attrs[0].span;