Do not overwrite binders for another HirId.

This commit is contained in:
Camille GILLOT 2022-09-05 17:21:19 +02:00
parent 57ee5cf5a9
commit 337a73da6e
8 changed files with 112 additions and 25 deletions

View file

@ -731,6 +731,7 @@ pub enum PredicateOrigin {
/// A type bound (e.g., `for<'c> Foo: Send + Clone + 'c`).
#[derive(Debug, HashStable_Generic)]
pub struct WhereBoundPredicate<'hir> {
pub hir_id: HirId,
pub span: Span,
/// Origin of the predicate.
pub origin: PredicateOrigin,