Skip to content

Commit fe06c5d

Browse files
committed
Never parenthesize continue
1 parent 72ac961 commit fe06c5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: compiler/rustc_ast/src/ast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,6 @@ impl Expr {
13251325
}
13261326

13271327
ExprKind::Break(..)
1328-
| ExprKind::Continue(..)
13291328
| ExprKind::Ret(..)
13301329
| ExprKind::Yield(..)
13311330
| ExprKind::Yeet(..)
@@ -1359,6 +1358,7 @@ impl Expr {
13591358
| ExprKind::Block(..)
13601359
| ExprKind::Call(..)
13611360
| ExprKind::ConstBlock(_)
1361+
| ExprKind::Continue(..)
13621362
| ExprKind::Field(..)
13631363
| ExprKind::ForLoop { .. }
13641364
| ExprKind::FormatArgs(..)

Diff for: compiler/rustc_hir/src/hir.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,6 @@ impl Expr<'_> {
17051705
}
17061706

17071707
ExprKind::Break(..)
1708-
| ExprKind::Continue(..)
17091708
| ExprKind::Ret(..)
17101709
| ExprKind::Yield(..)
17111710
| ExprKind::Become(..) => ExprPrecedence::Jump,
@@ -1731,6 +1730,7 @@ impl Expr<'_> {
17311730
| ExprKind::Block(..)
17321731
| ExprKind::Call(..)
17331732
| ExprKind::ConstBlock(_)
1733+
| ExprKind::Continue(..)
17341734
| ExprKind::Field(..)
17351735
| ExprKind::If(..)
17361736
| ExprKind::Index(..)

0 commit comments

Comments
 (0)