diff options
Diffstat (limited to 'src/librustc/middle/cfg/construct.rs')
| -rw-r--r-- | src/librustc/middle/cfg/construct.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/middle/cfg/construct.rs b/src/librustc/middle/cfg/construct.rs index 701a4596908..a6fb5c02f54 100644 --- a/src/librustc/middle/cfg/construct.rs +++ b/src/librustc/middle/cfg/construct.rs @@ -12,14 +12,14 @@ use rustc_data_structures::graph; use middle::cfg::*; use middle::def::Def; use middle::pat_util; -use middle::ty; +use middle::ty::{self, TyCtxt}; use syntax::ast; use syntax::ptr::P; use rustc_front::hir::{self, PatKind}; struct CFGBuilder<'a, 'tcx: 'a> { - tcx: &'a ty::ctxt<'tcx>, + tcx: &'a TyCtxt<'tcx>, graph: CFGGraph, fn_exit: CFGIndex, loop_scopes: Vec<LoopScope>, @@ -32,7 +32,7 @@ struct LoopScope { break_index: CFGIndex, // where to go on a `break } -pub fn construct(tcx: &ty::ctxt, +pub fn construct(tcx: &TyCtxt, blk: &hir::Block) -> CFG { let mut graph = graph::Graph::new(); let entry = graph.add_node(CFGNodeData::Entry); |
