@@ -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 ,
@@ -143,9 +141,10 @@ impl scc::Annotation for RegionTracker {
143141
144142/// Determines if the region variable definitions contain
145143/// placeholders, and compute them for later use.
146- fn region_definitions < ' tcx > (
147- universal_regions : & UniversalRegions < ' tcx > ,
144+ // FIXME: This is also used by opaque type handling. Move it to a separate file.
145+ pub ( super ) fn region_definitions < ' tcx > (
148146 infcx : & BorrowckInferCtxt < ' tcx > ,
147+ universal_regions : & UniversalRegions < ' tcx > ,
149148) -> ( Frozen < IndexVec < RegionVid , RegionDefinition < ' tcx > > > , bool ) {
150149 let var_infos = infcx. get_region_var_infos ( ) ;
151150 // Create a RegionDefinition for each inference variable. This happens here because
@@ -209,14 +208,13 @@ pub(crate) fn compute_sccs_applying_placeholder_outlives_constraints<'tcx>(
209208 infcx : & BorrowckInferCtxt < ' tcx > ,
210209) -> LoweredConstraints < ' tcx > {
211210 let universal_regions = & universal_region_relations. universal_regions ;
212- let ( definitions, has_placeholders) = region_definitions ( universal_regions , infcx ) ;
211+ let ( definitions, has_placeholders) = region_definitions ( infcx , universal_regions ) ;
213212
214213 let MirTypeckRegionConstraints {
215214 placeholder_indices,
216215 placeholder_index_to_region : _,
217216 liveness_constraints,
218217 mut outlives_constraints,
219- member_constraints,
220218 universe_causes,
221219 type_tests,
222220 } = constraints;
@@ -242,7 +240,6 @@ pub(crate) fn compute_sccs_applying_placeholder_outlives_constraints<'tcx>(
242240
243241 return LoweredConstraints {
244242 type_tests,
245- member_constraints,
246243 constraint_sccs,
247244 scc_annotations : scc_annotations. scc_to_annotation ,
248245 definitions,
@@ -279,7 +276,6 @@ pub(crate) fn compute_sccs_applying_placeholder_outlives_constraints<'tcx>(
279276 constraint_sccs,
280277 definitions,
281278 scc_annotations,
282- member_constraints,
283279 outlives_constraints : Frozen :: freeze ( outlives_constraints) ,
284280 type_tests,
285281 liveness_constraints,
0 commit comments