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:
Guillaume Gomez 2018-11-03 13:40:34 +01:00 committed by GitHub
commit 8ab8f5342d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(())