Skip to content

Commit e7c7f5f

Browse files
committed
Allowing attributes to be on if let statements
1 parent 4fe4063 commit e7c7f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,7 @@ impl<'a> Parser<'a> {
25972597
attrs.extend::<Vec<_>>(expr.attrs.into());
25982598
expr.attrs = attrs;
25992599
match expr.node {
2600-
ExprKind::If(..) | ExprKind::IfLet(..) => {
2600+
ExprKind::If(..) => {
26012601
if !expr.attrs.is_empty() {
26022602
// Just point to the first attribute in there...
26032603
let span = expr.attrs[0].span;

0 commit comments

Comments
 (0)