diff --git a/src/librustc/session/config.rs b/src/librustc/session/config.rs index cb307800fcdc2..92a3469526227 100644 --- a/src/librustc/session/config.rs +++ b/src/librustc/session/config.rs @@ -153,13 +153,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, } }