Deeply check that method signatures match, and allow for nested RPITITs
This commit is contained in:
parent
1f03edeabe
commit
cdf78073c5
13 changed files with 231 additions and 52 deletions
|
@ -651,6 +651,13 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
ty::EarlyBinder(self.type_of(def_id))
|
||||
}
|
||||
|
||||
pub fn bound_trait_impl_trait_tys(
|
||||
self,
|
||||
def_id: DefId,
|
||||
) -> ty::EarlyBinder<Result<&'tcx FxHashMap<DefId, Ty<'tcx>>, ErrorGuaranteed>> {
|
||||
ty::EarlyBinder(self.compare_predicates_and_trait_impl_trait_tys(def_id))
|
||||
}
|
||||
|
||||
pub fn bound_fn_sig(self, def_id: DefId) -> ty::EarlyBinder<ty::PolyFnSig<'tcx>> {
|
||||
ty::EarlyBinder(self.fn_sig(def_id))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue