diff options
| author | Michael Baikov <manpacket@gmail.com> | 2024-03-21 16:13:46 -0400 |
|---|---|---|
| committer | Michael Baikov <manpacket@gmail.com> | 2024-03-22 10:59:13 -0400 |
| commit | bf12aa49e71d6e444c34d7adb87647f36b7dde1a (patch) | |
| tree | e65281a3f94007497f2ac1576aeaf4ad6c4d7da4 /compiler/rustc_codegen_ssa/src/back | |
| parent | 03994e498df79aa1f97f7bbcfd52d57c8e865049 (diff) | |
| download | rust-bf12aa49e71d6e444c34d7adb87647f36b7dde1a.tar.gz rust-bf12aa49e71d6e444c34d7adb87647f36b7dde1a.zip | |
Don't emit an error about failing to produce a file with a specific name
If user never gave an explicit name
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index 4eda4c2f08c..b7bcaac3b18 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -592,7 +592,7 @@ fn produce_final_output_artifacts( .unwrap() .to_owned(); - if crate_output.outputs.contains_key(&output_type) { + if crate_output.outputs.contains_explicit_name(&output_type) { // 2) Multiple codegen units, with `--emit foo=some_name`. We have // no good solution for this case, so warn the user. sess.dcx().emit_warn(errors::IgnoringEmitPath { extension }); |
