@@ -23,6 +23,8 @@ use std::{cmp, fmt, mem};
23
23
24
24
mod leak_check;
25
25
26
+ pub use rustc:: infer:: types:: MemberConstraint ;
27
+
26
28
#[ derive( Default ) ]
27
29
pub struct RegionConstraintCollector < ' tcx > {
28
30
/// For each `RegionVid`, the corresponding `RegionVariableOrigin`.
@@ -145,30 +147,6 @@ impl Constraint<'_> {
145
147
}
146
148
}
147
149
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
-
172
150
/// `VerifyGenericBound(T, _, R, RS)`: the parameter type `T` (or
173
151
/// associated type) must outlive the region `R`. `T` is known to
174
152
/// outlive `RS`. Therefore, verify that `R <= RS[i]` for some
0 commit comments