From 4b9dc4997584c2fe5f32e902dbef8192336c7770 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Thu, 30 Oct 2025 15:13:05 +0000 Subject: [PATCH] Allow check builds with binaries for the dummy codegen backend --- compiler/rustc_interface/src/util.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs index 56c3f65d8ae8e..aeb15a3de312e 100644 --- a/compiler/rustc_interface/src/util.rs +++ b/compiler/rustc_interface/src/util.rs @@ -421,6 +421,7 @@ impl CodegenBackend for DummyCodegenBackend { .crate_types .iter() .find(|&&crate_type| crate_type != CrateType::Rlib) + && outputs.outputs.should_link() { #[allow(rustc::untranslatable_diagnostic)] #[allow(rustc::diagnostic_outside_of_impl)]