diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs index 440ed2b46320b..04ccd0d73e3d9 100644 --- a/compiler/rustc_trait_selection/src/traits/select/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs @@ -1544,7 +1544,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { // // FIXME(#132279): This is still incorrect as we treat opaque types // and default associated items differently between these two modes. - TypingMode::PostAnalysis | TypingMode::Codegen => true, + TypingMode::PostAnalysis => true, + TypingMode::Codegen => false, } }