Unnamed repository; edit this file 'description' to name the repository.
Rollup merge of #100643 - TaKO8Ki:point-at-type-parameter-shadowing-another-type, r=estebank
Point at a type parameter shadowing another type This patch fixes a part of #97459.
Matthias Krüger 2022-08-18
parent acf577f · parent b29780d · commit 9c4c6d2
-rw-r--r--bench_data/glorious_old_parser2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench_data/glorious_old_parser b/bench_data/glorious_old_parser
index 7e900dfeb1..764893daa1 100644
--- a/bench_data/glorious_old_parser
+++ b/bench_data/glorious_old_parser
@@ -1988,7 +1988,7 @@ impl<'a> Parser<'a> {
err.span_suggestion(
span,
"declare the type after the parameter binding",
- String::from("<identifier>: <type>"),
+ "<identifier>: <type>",
Applicability::HasPlaceholders,
);
} else if require_name && is_trait_item {