rust/compiler/rustc_metadata/src
bors 8ed1d4a02d 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
2023-09-17 11:45:53 +00:00
..
rmeta Auto merge of #115735 - bjorn3:better_list_crate_metadata, r=wesleywiser 2023-09-13 10:23:57 +00:00
creader.rs Use FreezeLock for CStore 2023-09-09 16:02:11 +02:00
dependency_format.rs rustc: Move crate_types from Session to GlobalCtxt 2023-08-09 14:17:54 +08:00
errors.rs Suggest x build library for a custom toolchain that fails to load core 2023-07-04 09:37:40 +08:00
foreign_modules.rs Do not fetch HIR in native_libs. 2023-07-17 07:37:03 +00:00
fs.rs Auto merge of #114750 - Enselic:metadata-dep-info, r=compiler-errors 2023-09-17 11:45:53 +00:00
lib.rs Reuse const rendering from rustdoc in rmeta encoding 2023-09-01 17:22:48 -04:00
locator.rs Show lib features in -Zls and allow configuring which things are shown 2023-09-10 13:24:20 +00:00
native_libs.rs rustc: Move crate_types from Session to GlobalCtxt 2023-08-09 14:17:54 +08:00