diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-02-29 23:36:51 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-03-03 07:37:56 +0000 |
| commit | 37ba66a66e07ce62a743b61f83d1b7bf38f1f88b (patch) | |
| tree | 4519aaeb50b395e70d1106583a1b7a424a928807 /src/librustc/middle/cfg/construct.rs | |
| parent | 7cee8b9ffb6a2dac7e2f729988c2324e2f8ac10f (diff) | |
| download | rust-37ba66a66e07ce62a743b61f83d1b7bf38f1f88b.tar.gz rust-37ba66a66e07ce62a743b61f83d1b7bf38f1f88b.zip | |
Rename middle::ty::ctxt to TyCtxt
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); |
