@@ -15,7 +15,6 @@ use tracing::debug;
1515use crate :: constraints:: { ConstraintSccIndex , OutlivesConstraintSet } ;
1616use crate :: consumers:: OutlivesConstraint ;
1717use crate :: diagnostics:: UniverseInfo ;
18- use crate :: member_constraints:: MemberConstraintSet ;
1918use crate :: region_infer:: values:: { LivenessValues , PlaceholderIndices } ;
2019use crate :: region_infer:: { ConstraintSccs , RegionDefinition , Representative , TypeTest } ;
2120use crate :: ty:: VarianceDiagInfo ;
@@ -30,7 +29,6 @@ pub(crate) struct LoweredConstraints<'tcx> {
3029 pub ( crate ) constraint_sccs : Sccs < RegionVid , ConstraintSccIndex > ,
3130 pub ( crate ) definitions : Frozen < IndexVec < RegionVid , RegionDefinition < ' tcx > > > ,
3231 pub ( crate ) scc_annotations : IndexVec < ConstraintSccIndex , RegionTracker > ,
33- pub ( crate ) member_constraints : MemberConstraintSet < ' tcx , RegionVid > ,
3432 pub ( crate ) outlives_constraints : Frozen < OutlivesConstraintSet < ' tcx > > ,
3533 pub ( crate ) type_tests : Vec < TypeTest < ' tcx > > ,
3634 pub ( crate ) liveness_constraints : LivenessValues ,
@@ -147,9 +145,10 @@ impl scc::Annotation for RegionTracker {
147145
148146/// Determines if the region variable definitions contain
149147/// placeholders, and compute them for later use.
150- fn region_definitions < ' tcx > (
151- universal_regions : & UniversalRegions < ' tcx > ,
148+ // FIXME: This is also used by opaque type handling. Move it to a separate file.
149+ pub ( super ) fn region_definitions < ' tcx > (
152150 infcx : & BorrowckInferCtxt < ' tcx > ,
151+ universal_regions : & UniversalRegions < ' tcx > ,
153152) -> ( Frozen < IndexVec < RegionVid , RegionDefinition < ' tcx > > > , bool ) {
154153 let var_infos = infcx. get_region_var_infos ( ) ;
155154 // Create a RegionDefinition for each inference variable. This happens here because
@@ -213,14 +212,13 @@ pub(crate) fn compute_sccs_applying_placeholder_outlives_constraints<'tcx>(
213212 infcx : & BorrowckInferCtxt < ' tcx > ,
214213) -> LoweredConstraints < ' tcx > {
215214 let universal_regions = & universal_region_relations. universal_regions ;
216- let ( definitions, has_placeholders) = region_definitions ( universal_regions , infcx ) ;
215+ let ( definitions, has_placeholders) = region_definitions ( infcx , universal_regions ) ;
217216
218217 let MirTypeckRegionConstraints {
219218 placeholder_indices,
220219 placeholder_index_to_region : _,
221220 liveness_constraints,
222221 mut outlives_constraints,
223- member_constraints,
224222 universe_causes,
225223 type_tests,
226224 } = constraints;
@@ -246,7 +244,6 @@ pub(crate) fn compute_sccs_applying_placeholder_outlives_constraints<'tcx>(
246244
247245 return LoweredConstraints {
248246 type_tests,
249- member_constraints,
250247 constraint_sccs,
251248 scc_annotations : scc_annotations. scc_to_annotation ,
252249 definitions,
@@ -283,7 +280,6 @@ pub(crate) fn compute_sccs_applying_placeholder_outlives_constraints<'tcx>(
283280 constraint_sccs,
284281 definitions,
285282 scc_annotations,
286- member_constraints,
287283 outlives_constraints : Frozen :: freeze ( outlives_constraints) ,
288284 type_tests,
289285 liveness_constraints,
0 commit comments