Give precendence to regions from member constaints when inferring concrete types.
This commit is contained in:
parent
b552965a93
commit
b37feca804
4 changed files with 46 additions and 18 deletions
|
@ -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>,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue