diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-06-13 16:01:16 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-06-13 16:01:16 +0900 |
| commit | fd1290a63165155e4f7ec469ae6aeddf0bfb9f70 (patch) | |
| tree | 5b9ffb6391c0d044396187296589a7f68513d51b /compiler/rustc_parse/src/parser | |
| parent | 77d6176e69de8bcdc15a12402ce7245f06ca2329 (diff) | |
| download | rust-fd1290a63165155e4f7ec469ae6aeddf0bfb9f70.tar.gz rust-fd1290a63165155e4f7ec469ae6aeddf0bfb9f70.zip | |
remove unnecessary `to_string` and `String::new` for `tool_only_span_suggestion`
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs index 784d140c458..7bc8175195f 100644 --- a/compiler/rustc_parse/src/parser/diagnostics.rs +++ b/compiler/rustc_parse/src/parser/diagnostics.rs @@ -2596,7 +2596,7 @@ impl<'a> Parser<'a> { err.tool_only_span_suggestion( label.ident.span.until(self.token.span), "remove this block label", - String::new(), + "", Applicability::MachineApplicable, ); err.emit(); |
