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 2c0f486 commit 46d8adeCopy full SHA for 46d8ade
compiler/rustc_trait_selection/src/traits/mod.rs
@@ -637,7 +637,7 @@ pub fn try_evaluate_const<'tcx>(
637
638
// Since there is no generic parameter, we can just drop the environment
639
// to prevent query cycle.
640
- let typing_env = infcx.typing_env(ty::ParamEnv::empty());
+ let typing_env = ty::TypingEnv::fully_monomorphized();
641
642
(uv.args, typing_env)
643
}
0 commit comments