Suggest wrapping mac args in parens rather than the whole expression
This commit is contained in:
parent
c1c7707238
commit
ec263df5e4
5 changed files with 45 additions and 23 deletions
|
@ -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(),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue