about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorSebastian Malton <sebastian@malton.name>2018-06-06 22:03:42 -0400
committerSebastian Malton <sebastian@malton.name>2018-06-06 22:03:42 -0400
commite7c7f5f07139cd4afe6e8db13942a0ec250ded70 (patch)
tree4041ad9800cdd8142d80f74527e0495f063a9fe4 /src/libsyntax/parse
parent4fe40635ef3c2cdbc2e3f62ca71f0e2235e70639 (diff)
downloadrust-e7c7f5f07139cd4afe6e8db13942a0ec250ded70.tar.gz
rust-e7c7f5f07139cd4afe6e8db13942a0ec250ded70.zip
Allowing attributes to be on if let statements
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
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 @@ impl<'a> Parser<'a> {
                 attrs.extend::<Vec<_>>(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;