@@ -20,7 +20,7 @@ use infer::region_constraints::VerifyBound;
2020use middle:: free_region:: RegionRelations ;
2121use rustc_data_structures:: indexed_vec:: { Idx , IndexVec } ;
2222use rustc_data_structures:: fx:: FxHashSet ;
23- use rustc_data_structures:: graph :: { self , Direction , NodeIndex , OUTGOING } ;
23+ use rustc_data_structures:: control_flow_graph :: implementation :: { Graph , Direction , NodeIndex , INCOMING , OUTGOING } ;
2424use std:: fmt;
2525use std:: u32;
2626use ty:: { self , TyCtxt } ;
@@ -99,7 +99,7 @@ struct RegionAndOrigin<'tcx> {
9999 origin : SubregionOrigin < ' tcx > ,
100100}
101101
102- type RegionGraph < ' tcx > = graph :: Graph < ( ) , Constraint < ' tcx > > ;
102+ type RegionGraph < ' tcx > = Graph < ( ) , Constraint < ' tcx > > ;
103103
104104struct LexicalResolver < ' cx , ' gcx : ' tcx , ' tcx : ' cx > {
105105 region_rels : & ' cx RegionRelations < ' cx , ' gcx , ' tcx > ,
@@ -501,7 +501,7 @@ impl<'cx, 'gcx, 'tcx> LexicalResolver<'cx, 'gcx, 'tcx> {
501501 fn construct_graph ( & self ) -> RegionGraph < ' tcx > {
502502 let num_vars = self . num_vars ( ) ;
503503
504- let mut graph = graph :: Graph :: new ( ) ;
504+ let mut graph = Graph :: new ( ) ;
505505
506506 for _ in 0 ..num_vars {
507507 graph. add_node ( ( ) ) ;
@@ -550,9 +550,9 @@ impl<'cx, 'gcx, 'tcx> LexicalResolver<'cx, 'gcx, 'tcx> {
550550 // Errors in expanding nodes result from a lower-bound that is
551551 // not contained by an upper-bound.
552552 let ( mut lower_bounds, lower_dup) =
553- self . collect_concrete_regions ( graph, node_idx, graph :: INCOMING , dup_vec) ;
553+ self . collect_concrete_regions ( graph, node_idx, INCOMING , dup_vec) ;
554554 let ( mut upper_bounds, upper_dup) =
555- self . collect_concrete_regions ( graph, node_idx, graph :: OUTGOING , dup_vec) ;
555+ self . collect_concrete_regions ( graph, node_idx, OUTGOING , dup_vec) ;
556556
557557 if lower_dup || upper_dup {
558558 return ;
0 commit comments