rust/compiler/rustc_session/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
..
config Change process spawning to inherit the parent's signal mask by default 2022-10-20 14:53:38 -07:00
cgu_reuse_tracker.rs Remove useless borrows and derefs 2022-12-01 17:34:43 +00:00
code_stats.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
config.rs Auto merge of #114750 - Enselic:metadata-dep-info, r=compiler-errors 2023-09-17 11:45:53 +00:00
cstore.rs Use FreezeLock for CStore 2023-09-09 16:02:11 +02:00
errors.rs unknown unstable lint command line 2023-08-22 18:58:39 +08:00
filesearch.rs bump windows crate 0.46 -> 0.48 in workspace 2023-05-09 18:20:13 +03:00
lib.rs Bump cfg(bootstrap) 2023-08-23 20:05:14 -04:00
options.rs Auto merge of #115735 - bjorn3:better_list_crate_metadata, r=wesleywiser 2023-09-13 10:23:57 +00:00
output.rs Make .rmeta file in dep-info have correct name (lib prefix) 2023-09-03 07:14:12 +02:00
parse.rs unknown unstable lint command line 2023-08-22 18:58:39 +08:00
search_paths.rs Provide more context for rustc +nightly -Zunstable-options on stable 2023-06-27 23:23:33 +08:00
session.rs Add missing Debuginfo to PDB debug file on windows. 2023-09-08 00:28:40 +02:00
utils.rs Move extra_compiler_flags() to rustc_session 2023-08-24 06:31:11 +02:00