diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-18 03:01:05 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-01-18 00:01:13 +0000 |
| commit | ec263df5e440598159f19a42c104c3b5f13888a0 (patch) | |
| tree | 768e9d4c85b7875e37d78bea430397925d39343c /compiler/rustc_parse/src/parser/expr.rs | |
| parent | c1c7707238bd58242588d75a350def4ceb59c581 (diff) | |
| download | rust-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.rs | 2 |
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(), }, |
