@@ -22,7 +22,7 @@ use rustc_span::hygiene::DesugaringKind;
2222use rustc_span:: { DUMMY_SP , Span } ;
2323use tracing:: { debug, instrument, trace} ;
2424
25- use crate :: constraints:: graph:: { self , NormalConstraintGraph , RegionGraph } ;
25+ use crate :: constraints:: graph:: NormalConstraintGraph ;
2626use crate :: constraints:: { ConstraintSccIndex , OutlivesConstraint , OutlivesConstraintSet } ;
2727use crate :: dataflow:: BorrowIndex ;
2828use crate :: diagnostics:: { RegionErrorKind , RegionErrors , UniverseInfo } ;
@@ -271,7 +271,6 @@ enum Trace<'a, 'tcx> {
271271 StartRegion ,
272272 FromGraph ( & ' a OutlivesConstraint < ' tcx > ) ,
273273 FromStatic ( RegionVid ) ,
274- FromMember ( RegionVid , RegionVid , Span ) ,
275274 NotVisited ,
276275}
277276
@@ -1510,20 +1509,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
15101509 result. push ( c) ;
15111510 }
15121511
1513- Trace :: FromMember ( sup, sub, span) => {
1514- let c = OutlivesConstraint {
1515- sup,
1516- sub,
1517- locations : Locations :: All ( span) ,
1518- span,
1519- category : ConstraintCategory :: OpaqueType ,
1520- variance_info : ty:: VarianceDiagInfo :: default ( ) ,
1521- from_closure : false ,
1522- } ;
1523- p = c. sup ;
1524- result. push ( c) ;
1525- }
1526-
15271512 Trace :: StartRegion => {
15281513 result. reverse ( ) ;
15291514 return Some ( ( result, r) ) ;
@@ -1892,11 +1877,6 @@ impl<'tcx> RegionInferenceContext<'tcx> {
18921877 & self . constraint_sccs
18931878 }
18941879
1895- /// Access to the region graph, built from the outlives constraints.
1896- pub ( crate ) fn region_graph ( & self ) -> RegionGraph < ' _ , ' tcx , graph:: Normal > {
1897- self . constraint_graph . region_graph ( & self . constraints , self . universal_regions ( ) . fr_static )
1898- }
1899-
19001880 /// Returns the representative `RegionVid` for a given SCC.
19011881 /// See `RegionTracker` for how a region variable ID is chosen.
19021882 ///
0 commit comments