We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0c20d5 + b8db431 commit 291f642Copy full SHA for 291f642
compiler/rustc_hir_analysis/src/astconv/errors.rs
@@ -408,10 +408,7 @@ impl<'tcx> dyn AstConv<'tcx> + '_ {
408
traits with associated type `{name}`, you could use the \
409
fully-qualified path",
410
),
411
- traits
412
- .iter()
413
- .map(|trait_str| format!("<Example as {trait_str}>::{name}"))
414
- .collect::<Vec<_>>(),
+ traits.iter().map(|trait_str| format!("<Example as {trait_str}>::{name}")),
415
Applicability::HasPlaceholders,
416
);
417
}
0 commit comments