about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/expr.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-12-18 03:01:05 +0000
committerMichael Goulet <michael@errs.io>2024-01-18 00:01:13 +0000
commitec263df5e440598159f19a42c104c3b5f13888a0 (patch)
tree768e9d4c85b7875e37d78bea430397925d39343c /compiler/rustc_parse/src/parser/expr.rs
parentc1c7707238bd58242588d75a350def4ceb59c581 (diff)
downloadrust-ec263df5e440598159f19a42c104c3b5f13888a0.tar.gz
rust-ec263df5e440598159f19a42c104c3b5f13888a0.zip
Suggest wrapping mac args in parens rather than the whole expression
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index 8ca02452342..f858706805d 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -1844,7 +1844,7 @@ impl<'a> Parser<'a> {
             let lexpr = self.parse_expr_labeled(label, true)?;
             self.dcx().emit_err(errors::LabeledLoopInBreak {
                 span: lexpr.span,
-                sub: errors::WrapExpressionInParentheses {
+                sub: errors::WrapInParentheses::Expression {
                     left: lexpr.span.shrink_to_lo(),
                     right: lexpr.span.shrink_to_hi(),
                 },