Skip to content

Commit 8ab8f53

Browse files
Rollup merge of rust-lang#55555 - aidanhs:aphs-better-z-ls, r=alexcrichton
Make `-Z ls` list the actual filename of external dependencies The hash is pointless for external consumers - extra_filename is the thing that actually gets used, per https://github.com/rust-lang/rust/blob/ca2639e/src/librustc_metadata/locator.rs#L312-L313
2 parents 336b023 + e84f461 commit 8ab8f53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_metadata/decoder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ impl<'a, 'tcx> MetadataBlob {
400400
for (i, dep) in root.crate_deps
401401
.decode(self)
402402
.enumerate() {
403-
write!(out, "{} {}-{}\n", i + 1, dep.name, dep.hash)?;
403+
write!(out, "{} {}{}\n", i + 1, dep.name, dep.extra_filename)?;
404404
}
405405
write!(out, "\n")?;
406406
Ok(())

0 commit comments

Comments
 (0)