Remove collect

This commit is contained in:
Roc Yu 2022-01-15 18:06:45 -05:00
parent ec4bcaac45
commit 47de5b45be
No known key found for this signature in database
GPG Key ID: 5068CE514A79D27F

View File

@ -492,9 +492,9 @@ impl<'tcx> Visitor<'tcx> for EmitIgnoredResolutionErrors<'tcx> {
"could not resolve path `{}`",
path.segments
.iter()
.map(|segment| segment.ident.as_str().to_string())
.collect::<Vec<_>>()
.join("::")
.map(|segment| segment.ident.as_str())
.intersperse("::")
.collect::<String>()
);
let mut err = rustc_errors::struct_span_err!(
self.tcx.sess,