about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-17 11:45:53 +0000
committerbors <bors@rust-lang.org>2023-09-17 11:45:53 +0000
commit8ed1d4a02ddd840a1efaca4e5e66881cbec5b0b3 (patch)
tree4e6242033c3551fb6deb29f8a491c9a53bfb1d82 /compiler/rustc_mir_transform/src/coverage/debug.rs
parent327e6cf55cc5211e19ed46e92e05eef29dc75dd0 (diff)
parent04d81ba153d0b7d9ea92fb55e5ef8ebccea226b6 (diff)
downloadrust-8ed1d4a02ddd840a1efaca4e5e66881cbec5b0b3.tar.gz
rust-8ed1d4a02ddd840a1efaca4e5e66881cbec5b0b3.zip
Auto merge of #114750 - Enselic:metadata-dep-info, r=compiler-errors
Make `.rmeta` file in `dep-info` have correct name (`lib` prefix)

Since `filename_for_metadata()` and
`OutputFilenames::path(OutputType::Metadata)` had different logic for the name of the metadata file, the `.d` file contained a file name different from the actual name used. Share the logic to fix the out-of-sync name.

Without this fix, the `.d` file contained

    dash-separated_something-extra.rmeta: dash-separated.rs

instead of

    libdash_separated_something-extra.rmeta: dash-separated.rs

which is the name of the file that is actually written by the compiler.

Worth noting: It took me several iterations to get all tests to pass, so I am relatively confident that this PR does not break anything.

Closes #68839
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions