about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-17 13:55:27 +0000
committerbors <bors@rust-lang.org>2024-03-17 13:55:27 +0000
commit35dfc67d94c47a6c6ae28c46e7dc1c547f772485 (patch)
treedf9c31ba64bbd80451d693aa160a6131ee1464b1 /compiler/rustc_hir_analysis
parenta0c20d52e0e83f0bdd5c4f24295def8b276de314 (diff)
parent12137462b45d9b3287155e80883ae9251a6cea55 (diff)
downloadrust-35dfc67d94c47a6c6ae28c46e7dc1c547f772485.tar.gz
rust-35dfc67d94c47a6c6ae28c46e7dc1c547f772485.zip
Auto merge of #122637 - matthiaskrgr:rollup-bczj5bp, r=matthiaskrgr
Rollup of 3 pull requests

Successful merges:

 - #121236 (Don't show suggestion if slice pattern is not top-level)
 - #121787 (run change tracker even when config parse fails)
 - #122633 (avoid unnecessary collect())

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_hir_analysis')
-rw-r--r--compiler/rustc_hir_analysis/src/astconv/errors.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_hir_analysis/src/astconv/errors.rs b/compiler/rustc_hir_analysis/src/astconv/errors.rs
index 37fbf45235a..68896768e8d 100644
--- a/compiler/rustc_hir_analysis/src/astconv/errors.rs
+++ b/compiler/rustc_hir_analysis/src/astconv/errors.rs
@@ -408,10 +408,7 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
                              traits with associated type `{name}`, you could use the \
                              fully-qualified path",
                         ),
-                        traits
-                            .iter()
-                            .map(|trait_str| format!("<Example as {trait_str}>::{name}"))
-                            .collect::<Vec<_>>(),
+                        traits.iter().map(|trait_str| format!("<Example as {trait_str}>::{name}")),
                         Applicability::HasPlaceholders,
                     );
                 }