From 1aacef4f173fe9a60bf8867ddc300c77aa1123c6 Mon Sep 17 00:00:00 2001 From: Kent Ross Date: Mon, 13 Jul 2026 01:07:11 -0700 Subject: [PATCH] possible minimal fix for #146965, #146813, and #158756 --- compiler/rustc_trait_selection/src/traits/select/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, } }