diff options
| author | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-01-11 11:32:33 -0700 | 
|---|---|---|
| committer | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-01-14 00:30:03 -0700 | 
| commit | 6e969ea85eb8f5e504c1a0a06c0a63c515fadf3b (patch) | |
| tree | d214b2b2e1b2eac7a597229c7107a318127495b2 /compiler/rustc_ty_utils/src/implied_bounds.rs | |
| parent | f29a334c90e29ffbe236f9abba9aa08bfda597c6 (diff) | |
| download | rust-6e969ea85eb8f5e504c1a0a06c0a63c515fadf3b.tar.gz rust-6e969ea85eb8f5e504c1a0a06c0a63c515fadf3b.zip | |
fix  various subst_identity vs skip_binder
Diffstat (limited to 'compiler/rustc_ty_utils/src/implied_bounds.rs')
| -rw-r--r-- | compiler/rustc_ty_utils/src/implied_bounds.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/compiler/rustc_ty_utils/src/implied_bounds.rs b/compiler/rustc_ty_utils/src/implied_bounds.rs index 7a9c1d8ffe7..7a24645803c 100644 --- a/compiler/rustc_ty_utils/src/implied_bounds.rs +++ b/compiler/rustc_ty_utils/src/implied_bounds.rs @@ -22,9 +22,9 @@ fn assumed_wf_types(tcx: TyCtxt<'_>, def_id: DefId) -> &ty::List<Ty<'_>> { tcx.intern_type_list(&assumed_wf_types) } DefKind::Impl => { - match tcx.impl_trait_ref(def_id).map(ty::EarlyBinder::subst_identity) { + match tcx.impl_trait_ref(def_id) { Some(trait_ref) => { - let types: Vec<_> = trait_ref.substs.types().collect(); + let types: Vec<_> = trait_ref.skip_binder().substs.types().collect(); tcx.intern_type_list(&types) } // Only the impl self type | 
