Skip to content

Commit ebfb45e

Browse files
committed
rename control_flow_graph to graph
1 parent 7dc5620 commit ebfb45e

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;
@@ -2248,23 +2248,23 @@ fn item_path_str(def_id: DefId) -> String {
22482248
ty::tls::with(|tcx| tcx.item_path_str(def_id))
22492249
}
22502250

2251-
impl<'tcx> control_flow_graph::DirectedGraph for Mir<'tcx> {
2251+
impl<'tcx> graph::DirectedGraph for Mir<'tcx> {
22522252
type Node = BasicBlock;
22532253
}
22542254

2255-
impl<'tcx> control_flow_graph::WithNumNodes for Mir<'tcx> {
2255+
impl<'tcx> graph::WithNumNodes for Mir<'tcx> {
22562256
fn num_nodes(&self) -> usize {
22572257
self.basic_blocks.len()
22582258
}
22592259
}
22602260

2261-
impl<'tcx> control_flow_graph::WithStartNode for Mir<'tcx> {
2261+
impl<'tcx> graph::WithStartNode for Mir<'tcx> {
22622262
fn start_node(&self) -> Self::Node {
22632263
START_BLOCK
22642264
}
22652265
}
22662266

2267-
impl<'tcx> control_flow_graph::WithPredecessors for Mir<'tcx> {
2267+
impl<'tcx> graph::WithPredecessors for Mir<'tcx> {
22682268
fn predecessors<'graph>(
22692269
&'graph self,
22702270
node: Self::Node,
@@ -2273,7 +2273,7 @@ impl<'tcx> control_flow_graph::WithPredecessors for Mir<'tcx> {
22732273
}
22742274
}
22752275

2276-
impl<'tcx> control_flow_graph::WithSuccessors for Mir<'tcx> {
2276+
impl<'tcx> graph::WithSuccessors for Mir<'tcx> {
22772277
fn successors<'graph>(
22782278
&'graph self,
22792279
node: Self::Node,
@@ -2282,12 +2282,12 @@ impl<'tcx> control_flow_graph::WithSuccessors for Mir<'tcx> {
22822282
}
22832283
}
22842284

2285-
impl<'a, 'b> control_flow_graph::GraphPredecessors<'b> for Mir<'a> {
2285+
impl<'a, 'b> graph::GraphPredecessors<'b> for Mir<'a> {
22862286
type Item = BasicBlock;
22872287
type Iter = IntoIter<BasicBlock>;
22882288
}
22892289

2290-
impl<'a, 'b> control_flow_graph::GraphSuccessors<'b> for Mir<'a> {
2290+
impl<'a, 'b> graph::GraphSuccessors<'b> for Mir<'a> {
22912291
type Item = BasicBlock;
22922292
type Iter = iter::Cloned<Successors<'b>>;
22932293
}

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)