Align Term methods with GenericArg methods
This commit is contained in:
parent
7c52d2db63
commit
273b990554
23 changed files with 46 additions and 36 deletions
|
@ -553,7 +553,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
|
|||
}
|
||||
|
||||
fn is_self_referential_projection(&self, p: ty::PolyProjectionPredicate<'tcx>) -> bool {
|
||||
if let Some(ty) = p.term().skip_binder().ty() {
|
||||
if let Some(ty) = p.term().skip_binder().as_type() {
|
||||
matches!(ty.kind(), ty::Alias(ty::Projection, proj) if proj == &p.skip_binder().projection_term.expect_ty(self.tcx))
|
||||
} else {
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue