Skip to content

Commit

Permalink
Auto merge of #114750 - Enselic:metadata-dep-info, r=compiler-errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Sep 17, 2023
2 parents cb64338 + a914785 commit 1fd0b0b
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 1fd0b0b

Please sign in to comment.