about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-15 10:56:58 +0100
committerGitHub <noreply@github.com>2021-12-15 10:56:58 +0100
commit9ca0bd518ac5b30eea0319c92566eaf77f397708 (patch)
tree5f7e8958b9da0f98907c85af2976e80350ec7e6a /compiler/rustc_parse/src/parser
parentdf89fd2063aaa060c72c81254db0b930ff379e9a (diff)
parent97e844a032c47d4b3e70d2043f809767e437ac24 (diff)
downloadrust-9ca0bd518ac5b30eea0319c92566eaf77f397708.tar.gz
rust-9ca0bd518ac5b30eea0319c92566eaf77f397708.zip
Rollup merge of #91880 - matthiaskrgr:clippy_perf_dec, r=jyn514
fix clippy::single_char_pattern perf findings
Diffstat (limited to 'compiler/rustc_parse/src/parser')
-rw-r--r--compiler/rustc_parse/src/parser/diagnostics.rs2
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 25beed1ecf9..9677e7642b8 100644
--- a/compiler/rustc_parse/src/parser/diagnostics.rs
+++ b/compiler/rustc_parse/src/parser/diagnostics.rs
@@ -2236,7 +2236,7 @@ impl<'a> Parser<'a> {
             err.span_suggestion(
                 seq_span,
                 "...or a vertical bar to match on multiple alternatives",
-                seq_snippet.replace(",", " |"),
+                seq_snippet.replace(',', " |"),
                 Applicability::MachineApplicable,
             );
         }