We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecdea9e commit b8db431Copy full SHA for b8db431
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