diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index 88dae48a901..43de53e8723 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -522,7 +522,12 @@ impl<'a> Parser<'a> { token::BinOp(token::Plus) => { this.struct_span_err(lo, "leading `+` is not supported") .span_label(lo, "unexpected `+`") - .span_suggestion_short(lo, "remove the `+`", "".to_string(), Applicability::MachineApplicable) + .span_suggestion_short( + lo, + "remove the `+`", + "".to_string(), + Applicability::MachineApplicable, + ) .emit(); this.bump();