Suggest wrapping mac args in parens rather than the whole expression
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user