@@ -23,6 +23,8 @@ use std::{cmp, fmt, mem};
2323
2424mod leak_check;
2525
26+ pub use rustc:: infer:: types:: MemberConstraint ;
27+
2628#[ derive( Default ) ]
2729pub struct RegionConstraintCollector < ' tcx > {
2830 /// For each `RegionVid`, the corresponding `RegionVariableOrigin`.
@@ -145,30 +147,6 @@ impl Constraint<'_> {
145147 }
146148}
147149
148- /// Requires that `region` must be equal to one of the regions in `choice_regions`.
149- /// We often denote this using the syntax:
150- ///
151- /// ```
152- /// R0 member of [O1..On]
153- /// ```
154- #[ derive( Debug , Clone , HashStable , TypeFoldable , Lift ) ]
155- pub struct MemberConstraint < ' tcx > {
156- /// The `DefId` of the opaque type causing this constraint: used for error reporting.
157- pub opaque_type_def_id : DefId ,
158-
159- /// The span where the hidden type was instantiated.
160- pub definition_span : Span ,
161-
162- /// The hidden type in which `member_region` appears: used for error reporting.
163- pub hidden_ty : Ty < ' tcx > ,
164-
165- /// The region `R0`.
166- pub member_region : Region < ' tcx > ,
167-
168- /// The options `O1..On`.
169- pub choice_regions : Lrc < Vec < Region < ' tcx > > > ,
170- }
171-
172150/// `VerifyGenericBound(T, _, R, RS)`: the parameter type `T` (or
173151/// associated type) must outlive the region `R`. `T` is known to
174152/// outlive `RS`. Therefore, verify that `R <= RS[i]` for some
0 commit comments