Use skip_binder in favor of subst_identity

Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
This commit is contained in:
Sylvester Hesp 2023-02-16 10:38:28 +01:00 committed by Eduard-Mihai Burtescu
parent 4c374068d3
commit b1670298e9

View File

@ -143,7 +143,7 @@ fn is_blocklisted_fn<'tcx>(
ty::ImplContainer => {
let impl_def_id = assoc.container_id(tcx);
tcx.impl_trait_ref(impl_def_id)
.map(|tr| tr.subst_identity().def_id)
.map(|tr| tr.skip_binder().def_id)
== Some(debug_trait_def_id)
}
ty::TraitContainer => false,