diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-06-12 14:49:17 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-06-12 14:49:17 -0400 |
| commit | d6f13c0e207bff8b09eded9bd62d61f9d6d04b4c (patch) | |
| tree | f51f344b5e76fe2ef1c6ad5e9181da40038ad0d5 /src/libsyntax/parse | |
| parent | 92d4ae2be2e9428c9ab523f04f917a41ac0f760e (diff) | |
| download | rust-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.rs | 2 |
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; |
