1
Fork 0

Give precendence to regions from member constaints when inferring concrete types.

This commit is contained in:
Camille GILLOT 2022-11-14 21:24:18 +00:00
parent b552965a93
commit b37feca804
4 changed files with 46 additions and 18 deletions

View file

@ -11,6 +11,7 @@ use std::ops::Index;
/// Compactly stores a set of `R0 member of [R1...Rn]` constraints,
/// indexed by the region `R0`.
#[derive(Debug)]
pub(crate) struct MemberConstraintSet<'tcx, R>
where
R: Copy + Eq,
@ -31,6 +32,7 @@ where
}
/// Represents a `R0 member of [R1..Rn]` constraint
#[derive(Debug)]
pub(crate) struct NllMemberConstraint<'tcx> {
next_constraint: Option<NllMemberConstraintIndex>,