Skip to content

Commit

Permalink
Allowing attributes to be on if let statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokel81 committed Jun 7, 2018
1 parent 4fe4063 commit e7c7f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Expand Up @@ -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;
Expand Down

0 comments on commit e7c7f5f

Please sign in to comment.