Rollup merge of #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
This commit is contained in:
commit
8ab8f5342d
|
@ -400,7 +400,7 @@ impl<'a, 'tcx> MetadataBlob {
|
|||
for (i, dep) in root.crate_deps
|
||||
.decode(self)
|
||||
.enumerate() {
|
||||
write!(out, "{} {}-{}\n", i + 1, dep.name, dep.hash)?;
|
||||
write!(out, "{} {}{}\n", i + 1, dep.name, dep.extra_filename)?;
|
||||
}
|
||||
write!(out, "\n")?;
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in New Issue