Skip to content

Commit 90c90ba

Browse files
committed
rename control_flow_graph to graph
1 parent 3c30415 commit 90c90ba

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

src/librustc/cfg/construct.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use cfg::*;
1212
use middle::region;
13-
use rustc_data_structures::control_flow_graph::implementation as graph;
13+
use rustc_data_structures::graph::implementation as graph;
1414
use syntax::ptr::P;
1515
use ty::{self, TyCtxt};
1616

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::control_flow_graph::implementation as graph;
14+
use rustc_data_structures::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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
use rustc_data_structures::fx::FxHashMap;
12-
use rustc_data_structures::control_flow_graph::implementation::{
12+
use rustc_data_structures::graph::implementation::{
1313
Direction, INCOMING, Graph, NodeIndex, OUTGOING
1414
};
1515

src/librustc/infer/lexical_region_resolve/mod.rs

Lines changed: 1 addition & 1 deletion
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::control_flow_graph::implementation::{Graph, Direction, NodeIndex, INCOMING, OUTGOING};
23+
use rustc_data_structures::graph::implementation::{Graph, Direction, NodeIndex, INCOMING, OUTGOING};
2424
use std::fmt;
2525
use std::u32;
2626
use ty::{self, TyCtxt};

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::control_flow_graph::implementation::OUTGOING;
25+
use rustc_data_structures::graph::implementation::OUTGOING;
2626

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

src/librustc/mir/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ use mir::interpret::{EvalErrorKind, Scalar, Value};
2121
use mir::visit::MirVisitable;
2222
use rustc_apfloat::ieee::{Double, Single};
2323
use rustc_apfloat::Float;
24-
use rustc_data_structures::control_flow_graph::dominators::{dominators, Dominators};
25-
use rustc_data_structures::control_flow_graph;
26-
use rustc_data_structures::control_flow_graph::{GraphPredecessors, GraphSuccessors};
24+
use rustc_data_structures::graph::dominators::{dominators, Dominators};
25+
use rustc_data_structures::graph;
26+
use rustc_data_structures::graph::{GraphPredecessors, GraphSuccessors};
2727
use rustc_data_structures::indexed_vec::{Idx, IndexVec};
2828
use rustc_data_structures::small_vec::SmallVec;
2929
use rustc_data_structures::sync::Lrc;
@@ -2289,23 +2289,23 @@ fn item_path_str(def_id: DefId) -> String {
22892289
ty::tls::with(|tcx| tcx.item_path_str(def_id))
22902290
}
22912291

2292-
impl<'tcx> control_flow_graph::DirectedGraph for Mir<'tcx> {
2292+
impl<'tcx> graph::DirectedGraph for Mir<'tcx> {
22932293
type Node = BasicBlock;
22942294
}
22952295

2296-
impl<'tcx> control_flow_graph::WithNumNodes for Mir<'tcx> {
2296+
impl<'tcx> graph::WithNumNodes for Mir<'tcx> {
22972297
fn num_nodes(&self) -> usize {
22982298
self.basic_blocks.len()
22992299
}
23002300
}
23012301

2302-
impl<'tcx> control_flow_graph::WithStartNode for Mir<'tcx> {
2302+
impl<'tcx> graph::WithStartNode for Mir<'tcx> {
23032303
fn start_node(&self) -> Self::Node {
23042304
START_BLOCK
23052305
}
23062306
}
23072307

2308-
impl<'tcx> control_flow_graph::WithPredecessors for Mir<'tcx> {
2308+
impl<'tcx> graph::WithPredecessors for Mir<'tcx> {
23092309
fn predecessors<'graph>(
23102310
&'graph self,
23112311
node: Self::Node,
@@ -2314,7 +2314,7 @@ impl<'tcx> control_flow_graph::WithPredecessors for Mir<'tcx> {
23142314
}
23152315
}
23162316

2317-
impl<'tcx> control_flow_graph::WithSuccessors for Mir<'tcx> {
2317+
impl<'tcx> graph::WithSuccessors for Mir<'tcx> {
23182318
fn successors<'graph>(
23192319
&'graph self,
23202320
node: Self::Node,
@@ -2323,12 +2323,12 @@ impl<'tcx> control_flow_graph::WithSuccessors for Mir<'tcx> {
23232323
}
23242324
}
23252325

2326-
impl<'a, 'b> control_flow_graph::GraphPredecessors<'b> for Mir<'a> {
2326+
impl<'a, 'b> graph::GraphPredecessors<'b> for Mir<'a> {
23272327
type Item = BasicBlock;
23282328
type Iter = IntoIter<BasicBlock>;
23292329
}
23302330

2331-
impl<'a, 'b> control_flow_graph::GraphSuccessors<'b> for Mir<'a> {
2331+
impl<'a, 'b> graph::GraphSuccessors<'b> for Mir<'a> {
23322332
type Item = BasicBlock;
23332333
type Iter = iter::Cloned<Successors<'b>>;
23342334
}

src/librustc_codegen_llvm/mir/analyze.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! which do not.
1313
1414
use rustc_data_structures::bitvec::BitVector;
15-
use rustc_data_structures::control_flow_graph::dominators::Dominators;
15+
use rustc_data_structures::graph::dominators::Dominators;
1616
use rustc_data_structures::indexed_vec::{Idx, IndexVec};
1717
use rustc::mir::{self, Location, TerminatorKind};
1818
use rustc::mir::visit::{Visitor, PlaceContext};

0 commit comments

Comments
 (0)