Skip to content

Commit 72307e6

Browse files
committed
w
1 parent 3398b63 commit 72307e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_hir_typeck/src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
23262326
let fn_sig = self.tcx.fn_sig(item.def_id).skip_binder();
23272327
let ret_ty = fn_sig.output();
23282328
let ret_ty = self.tcx.normalize_erasing_late_bound_regions(
2329-
self.infcx.typing_env(self.param_env),
2329+
self.typing_env(self.param_env),
23302330
ret_ty,
23312331
);
23322332
if !self.can_eq(self.param_env, ret_ty, adt_ty) {

compiler/rustc_hir_typeck/src/intrinsicck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
4646
let span = tcx.hir().span(hir_id);
4747
let normalize = |ty| {
4848
let ty = self.resolve_vars_if_possible(ty);
49-
self.tcx.normalize_erasing_regions(self.infcx.typing_env(self.param_env), ty)
49+
self.tcx.normalize_erasing_regions(self.typing_env(self.param_env), ty)
5050
};
5151
let from = normalize(from);
5252
let to = normalize(to);

0 commit comments

Comments
 (0)