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 0a21970 commit fc73803Copy full SHA for fc73803
compiler/rustc_middle/src/ty/consts/kind.rs
@@ -32,11 +32,7 @@ impl<'tcx> ty::UnevaluatedConst<'tcx> {
32
// FIXME(eddyb, skinny121) pass `InferCtxt` into here when it's available, so that
33
// we can call `infcx.const_eval_resolve` which handles inference variables.
34
if (param_env, self).has_non_region_infer() {
35
- let typing_env = TypingEnv {
36
- typing_mode: ty::TypingMode::PostAnalysis,
37
- param_env: tcx.param_env_reveal_all_normalized(self.def),
38
- };
39
- (typing_env, ty::UnevaluatedConst {
+ (ty::TypingEnv::post_analysis(tcx, self.def), ty::UnevaluatedConst {
40
def: self.def,
41
args: ty::GenericArgs::identity_for_item(tcx, self.def),
42
})
0 commit comments