fix various subst_identity vs skip_binder
This commit is contained in:
parent
f29a334c90
commit
6e969ea85e
13 changed files with 29 additions and 25 deletions
|
@ -1898,9 +1898,9 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
|||
|
||||
for id in tcx.hir().items() {
|
||||
if matches!(tcx.def_kind(id.owner_id), DefKind::Impl) {
|
||||
if let Some(trait_ref) =
|
||||
tcx.impl_trait_ref(id.owner_id).map(ty::EarlyBinder::subst_identity)
|
||||
{
|
||||
if let Some(trait_ref) = tcx.impl_trait_ref(id.owner_id) {
|
||||
let trait_ref = trait_ref.subst_identity();
|
||||
|
||||
let simplified_self_ty = fast_reject::simplify_type(
|
||||
self.tcx,
|
||||
trait_ref.self_ty(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue