Skip to content

Commit fc73803

Browse files
committed
2
1 parent 0a21970 commit fc73803

File tree

1 file changed

+1
-5
lines changed
  • compiler/rustc_middle/src/ty/consts

1 file changed

+1
-5
lines changed

compiler/rustc_middle/src/ty/consts/kind.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ impl<'tcx> ty::UnevaluatedConst<'tcx> {
3232
// FIXME(eddyb, skinny121) pass `InferCtxt` into here when it's available, so that
3333
// we can call `infcx.const_eval_resolve` which handles inference variables.
3434
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 {
35+
(ty::TypingEnv::post_analysis(tcx, self.def), ty::UnevaluatedConst {
4036
def: self.def,
4137
args: ty::GenericArgs::identity_for_item(tcx, self.def),
4238
})

0 commit comments

Comments
 (0)