We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
collect
1 parent ec4bcaa commit 47de5b4Copy full SHA for 47de5b4
src/librustdoc/core.rs
@@ -492,9 +492,9 @@ impl<'tcx> Visitor<'tcx> for EmitIgnoredResolutionErrors<'tcx> {
492
"could not resolve path `{}`",
493
path.segments
494
.iter()
495
- .map(|segment| segment.ident.as_str().to_string())
496
- .collect::<Vec<_>>()
497
- .join("::")
+ .map(|segment| segment.ident.as_str())
+ .intersperse("::")
+ .collect::<String>()
498
);
499
let mut err = rustc_errors::struct_span_err!(
500
self.tcx.sess,
0 commit comments