Skip to content

Commit e4feeb8

Browse files
committed
w
1 parent ef3bd09 commit e4feeb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,7 @@ fn check_receiver_correct<'tcx>(tcx: TyCtxt<'tcx>, trait_def_id: DefId, method:
513513

514514
let method_def_id = method.def_id;
515515
let sig = tcx.fn_sig(method_def_id).instantiate_identity();
516-
let param_env = tcx.param_env(method_def_id);
517-
let typing_env = ty::TypingEnv { typing_mode: ty::TypingMode::non_body_analysis(), param_env };
516+
let typing_env = ty::TypingEnv::non_body_analysis(tcx, method_def_id);
518517
let receiver_ty = tcx.liberate_late_bound_regions(method_def_id, sig.input(0));
519518

520519
if receiver_ty == tcx.types.self_param {

0 commit comments

Comments
 (0)