Rollup merge of #97683 - cjgillot:no-apit-hrtb, r=nagisa

Fail gracefully when encountering an HRTB in APIT.

Fixes https://github.com/rust-lang/rust/issues/96954

~The first commit will be merged as part of https://github.com/rust-lang/rust/pull/97415~
This commit is contained in:
Matthias Krüger 2022-06-06 08:37:00 +02:00 committed by GitHub
commit f2b3808920
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 87 additions and 8 deletions

View file

@ -734,7 +734,7 @@ impl<'hir> WherePredicate<'hir> {
}
}
#[derive(Debug, HashStable_Generic, PartialEq, Eq)]
#[derive(Copy, Clone, Debug, HashStable_Generic, PartialEq, Eq)]
pub enum PredicateOrigin {
WhereClause,
GenericParam,