We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7760367 commit 78bf308Copy full SHA for 78bf308
1 file changed
compiler/rustc_const_eval/src/check_consts/qualifs.rs
@@ -105,7 +105,11 @@ impl Qualif for HasMutInterior {
105
// opaque types.
106
let typing_env = ty::TypingEnv::new(
107
cx.typing_env.param_env,
108
- ty::TypingMode::analysis_in_body(cx.tcx, cx.body.source.def_id().expect_local()),
+ if cx.tcx.next_trait_solver_globally() {
109
+ ty::TypingMode::PostAnalysis
110
+ } else {
111
+ ty::TypingMode::analysis_in_body(cx.tcx, cx.body.source.def_id().expect_local())
112
+ },
113
);
114
let (infcx, param_env) = cx.tcx.infer_ctxt().build_with_typing_env(typing_env);
115
let ocx = ObligationCtxt::new(&infcx);
0 commit comments