Skip to content

Commit 87f4b8d

Browse files
committed
rename control_flow_graph to graph
1 parent fbf06a1 commit 87f4b8d

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;
@@ -2277,23 +2277,23 @@ fn item_path_str(def_id: DefId) -> String {
22772277
ty::tls::with(|tcx| tcx.item_path_str(def_id))
22782278
}
22792279

2280-
impl<'tcx> control_flow_graph::DirectedGraph for Mir<'tcx> {
2280+
impl<'tcx> graph::DirectedGraph for Mir<'tcx> {
22812281
type Node = BasicBlock;
22822282
}
22832283

2284-
impl<'tcx> control_flow_graph::WithNumNodes for Mir<'tcx> {
2284+
impl<'tcx> graph::WithNumNodes for Mir<'tcx> {
22852285
fn num_nodes(&self) -> usize {
22862286
self.basic_blocks.len()
22872287
}
22882288
}
22892289

2290-
impl<'tcx> control_flow_graph::WithStartNode for Mir<'tcx> {
2290+
impl<'tcx> graph::WithStartNode for Mir<'tcx> {
22912291
fn start_node(&self) -> Self::Node {
22922292
START_BLOCK
22932293
}
22942294
}
22952295

2296-
impl<'tcx> control_flow_graph::WithPredecessors for Mir<'tcx> {
2296+
impl<'tcx> graph::WithPredecessors for Mir<'tcx> {
22972297
fn predecessors<'graph>(
22982298
&'graph self,
22992299
node: Self::Node,
@@ -2302,7 +2302,7 @@ impl<'tcx> control_flow_graph::WithPredecessors for Mir<'tcx> {
23022302
}
23032303
}
23042304

2305-
impl<'tcx> control_flow_graph::WithSuccessors for Mir<'tcx> {
2305+
impl<'tcx> graph::WithSuccessors for Mir<'tcx> {
23062306
fn successors<'graph>(
23072307
&'graph self,
23082308
node: Self::Node,
@@ -2311,12 +2311,12 @@ impl<'tcx> control_flow_graph::WithSuccessors for Mir<'tcx> {
23112311
}
23122312
}
23132313

2314-
impl<'a, 'b> control_flow_graph::GraphPredecessors<'b> for Mir<'a> {
2314+
impl<'a, 'b> graph::GraphPredecessors<'b> for Mir<'a> {
23152315
type Item = BasicBlock;
23162316
type Iter = IntoIter<BasicBlock>;
23172317
}
23182318

2319-
impl<'a, 'b> control_flow_graph::GraphSuccessors<'b> for Mir<'a> {
2319+
impl<'a, 'b> graph::GraphSuccessors<'b> for Mir<'a> {
23202320
type Item = BasicBlock;
23212321
type Iter = iter::Cloned<Successors<'b>>;
23222322
}

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};

src/librustc_data_structures/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub mod transitive_relation;
7070
pub use ena::unify;
7171
pub mod fx;
7272
pub mod tuple_slice;
73-
pub mod control_flow_graph;
73+
pub mod graph;
7474
pub mod flock;
7575
pub mod sync;
7676
pub mod owning_ref;

src/librustc_incremental/assert_dep_graph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ 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::control_flow_graph::implementation::{
52+
use rustc_data_structures::graph::implementation::{
5353
Direction, INCOMING, OUTGOING, NodeIndex
5454
};
5555
use rustc::hir;

src/librustc_mir/borrow_check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use rustc::mir::{Terminator, TerminatorKind};
2323
use rustc::ty::query::Providers;
2424
use rustc::ty::{self, ParamEnv, TyCtxt};
2525

26-
use rustc_data_structures::control_flow_graph::dominators::Dominators;
26+
use rustc_data_structures::graph::dominators::Dominators;
2727
use rustc_data_structures::fx::FxHashSet;
2828
use rustc_data_structures::indexed_set::IdxSetBuf;
2929
use rustc_data_structures::indexed_vec::Idx;

src/librustc_mir/borrow_check/nll/invalidation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use rustc::mir::{Terminator, TerminatorKind};
2929
use rustc::mir::{Field, Operand, BorrowKind};
3030
use rustc::ty::{self, ParamEnv};
3131
use rustc_data_structures::indexed_vec::Idx;
32-
use rustc_data_structures::control_flow_graph::dominators::Dominators;
32+
use rustc_data_structures::graph::dominators::Dominators;
3333

3434
pub(super) fn generate_invalidates<'cx, 'gcx, 'tcx>(
3535
infcx: &InferCtxt<'cx, 'gcx, 'tcx>,

src/librustc_mir/borrow_check/path_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use dataflow::indexes::BorrowIndex;
1616
use rustc::mir::{BasicBlock, Location, Mir, Place};
1717
use rustc::mir::{ProjectionElem, BorrowKind};
1818
use rustc::ty::TyCtxt;
19-
use rustc_data_structures::control_flow_graph::dominators::Dominators;
19+
use rustc_data_structures::graph::dominators::Dominators;
2020

2121
/// Returns true if the borrow represented by `kind` is
2222
/// allowed to be split into separate Reservation and

0 commit comments

Comments
 (0)