about summary refs log tree commit diff
path: root/compiler/rustc_parse
diff options
context:
space:
mode:
authorTheodore Luo Wang <wangtheo662@gmail.com>2021-08-31 23:09:43 -0400
committerTheodore Luo Wang <wangtheo662@gmail.com>2021-08-31 23:09:43 -0400
commite7fb98e7258557034f0d0caf81a53b0070a87297 (patch)
tree02d9643fc241aac3901703aed014396b6f827442 /compiler/rustc_parse
parent6cfe98f1962c442504a0b56f260620f1bccd7601 (diff)
downloadrust-e7fb98e7258557034f0d0caf81a53b0070a87297.tar.gz
rust-e7fb98e7258557034f0d0caf81a53b0070a87297.zip
Apply formatting
Diffstat (limited to 'compiler/rustc_parse')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs7
1 files changed, 6 insertions, 1 deletions
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();