Skip to content

Commit fbf06a1

Browse files
committed
rename graph to control_flow_graph::implementation
1 parent 6be4691 commit fbf06a1

File tree

10 files changed

+16
-12
lines changed

10 files changed

+16
-12
lines changed

src/librustc/cfg/construct.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use rustc_data_structures::graph;
1211
use cfg::*;
1312
use middle::region;
14-
use ty::{self, TyCtxt};
13+
use rustc_data_structures::control_flow_graph::implementation as graph;
1514
use syntax::ptr::P;
15+
use ty::{self, TyCtxt};
1616

1717
use hir::{self, PatKind};
1818
use hir::def_id::DefId;

src/librustc/cfg/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! Module that constructs a control-flow graph representing an item.
1212
//! Uses `Graph` as the underlying representation.
1313
14-
use rustc_data_structures::graph;
14+
use rustc_data_structures::control_flow_graph::implementation as graph;
1515
use ty::TyCtxt;
1616
use hir;
1717
use hir::def_id::DefId;

src/librustc/dep_graph/query.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
// except according to those terms.
1010

1111
use rustc_data_structures::fx::FxHashMap;
12-
use rustc_data_structures::graph::{Direction, INCOMING, Graph, NodeIndex, OUTGOING};
12+
use rustc_data_structures::control_flow_graph::implementation::{
13+
Direction, INCOMING, Graph, NodeIndex, OUTGOING
14+
};
1315

1416
use super::DepNode;
1517

src/librustc/infer/lexical_region_resolve/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use infer::region_constraints::VerifyBound;
2020
use middle::free_region::RegionRelations;
2121
use rustc_data_structures::indexed_vec::{Idx, IndexVec};
2222
use 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};
2424
use std::fmt;
2525
use std::u32;
2626
use 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

104104
struct 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;

src/librustc/middle/dataflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::mem;
2222
use std::usize;
2323
use syntax::print::pprust::PrintState;
2424

25-
use rustc_data_structures::graph::OUTGOING;
25+
use rustc_data_structures::control_flow_graph::implementation::OUTGOING;
2626

2727
use util::nodemap::FxHashMap;
2828
use hir;

src/librustc_data_structures/control_flow_graph/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use super::indexed_vec::Idx;
1212

1313
pub mod dominators;
14+
pub mod implementation;
1415
pub mod iterate;
1516
mod reference;
1617

src/librustc_data_structures/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ pub mod small_vec;
5959
pub mod base_n;
6060
pub mod bitslice;
6161
pub mod bitvec;
62-
pub mod graph;
6362
pub mod indexed_set;
6463
pub mod indexed_vec;
6564
pub mod obligation_forest;

src/librustc_incremental/assert_dep_graph.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ use rustc::dep_graph::debug::{DepNodeFilter, EdgeFilter};
4949
use rustc::hir::def_id::DefId;
5050
use rustc::ty::TyCtxt;
5151
use rustc_data_structures::fx::FxHashSet;
52-
use rustc_data_structures::graph::{Direction, INCOMING, OUTGOING, NodeIndex};
52+
use rustc_data_structures::control_flow_graph::implementation::{
53+
Direction, INCOMING, OUTGOING, NodeIndex
54+
};
5355
use rustc::hir;
5456
use rustc::hir::intravisit::{self, NestedVisitorMap, Visitor};
5557
use rustc::ich::{ATTR_IF_THIS_CHANGED, ATTR_THEN_THIS_WOULD_NEED};

0 commit comments

Comments
 (0)