about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-06-12 14:49:17 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-06-12 14:49:17 -0400
commitd6f13c0e207bff8b09eded9bd62d61f9d6d04b4c (patch)
treef51f344b5e76fe2ef1c6ad5e9181da40038ad0d5 /src/libsyntax/parse
parent92d4ae2be2e9428c9ab523f04f917a41ac0f760e (diff)
downloadrust-d6f13c0e207bff8b09eded9bd62d61f9d6d04b4c.tar.gz
rust-d6f13c0e207bff8b09eded9bd62d61f9d6d04b4c.zip
update wording, do not change parser
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 4fdfc74ca5d..95d519eae58 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::If(..) | ExprKind::IfLet(..) => {
                         if !expr.attrs.is_empty() {
                             // Just point to the first attribute in there...
                             let span = expr.attrs[0].span;