diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index 60d5340613c2a..e6203c94bfaa4 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -155,13 +155,12 @@ impl_stable_hash_via_hash!(OutputType); impl OutputType { fn is_compatible_with_codegen_units_and_single_output_file(&self) -> bool { match *self { - OutputType::Exe | OutputType::DepInfo => true, + OutputType::Exe | OutputType::DepInfo | OutputType::Metadata => true, OutputType::Bitcode | OutputType::Assembly | OutputType::LlvmAssembly | OutputType::Mir - | OutputType::Object - | OutputType::Metadata => false, + | OutputType::Object => false, } }