Don't check RPITITs that are Self:Sized for PointerLike
This commit is contained in:
parent
a7fa4cbcb4
commit
57e8a1c9c3
2 changed files with 18 additions and 0 deletions
|
@ -1197,6 +1197,11 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
continue;
|
||||
}
|
||||
|
||||
// RPITITs with `Self: Sized` don't need to be checked.
|
||||
if tcx.generics_require_sized_self(assoc_item) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let pointer_like_goal = pointer_like_goal_for_rpitit(
|
||||
tcx,
|
||||
supertrait,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue