pub fn build_borrowck_dataflow_data_for_fn<'a, 'tcx>(
    tcx: &'a TyCtxt<'tcx>,
    mir_map: Option<&'a MirMap<'tcx>>,
    fn_parts: FnParts<'a>,
    cfg: &cfg::CFG)
    -> (BorrowckCtxt<'a, 'tcx>, AnalysisData<'a, 'tcx>)
{

    let mut bccx = BorrowckCtxt {
        tcx: tcx,
        mir_map: mir_map,
        free_region_map: FreeRegionMap::new(),
        stats: BorrowStats {
            loaned_paths_same: 0,
            loaned_paths_imm: 0,
            stable_paths: 0,
            guaranteed_paths: 0
        }
    };

    let dataflow_data = build_borrowck_dataflow_data(&mut bccx,
                                                     fn_parts.kind,
                                                     &fn_parts.decl,
                                                     cfg,
                                                     &fn_parts.body,
                                                     fn_parts.span,
                                                     fn_parts.id);

    (bccx, dataflow_data)
}
/// Accessor for introspective clients inspecting `AnalysisData` and
/// the `BorrowckCtxt` itself , e.g. the flowgraph visualizer.
Accessor for introspective clients inspecting `AnalysisData` and
the `BorrowckCtxt` itself , e.g. the flowgraph visualizer.
Accessor for introspective clients inspecting ` AnalysisData ` and the ` BorrowckCtxt ` itself e . g . the flowgraph visualizer .
pub fn build_borrowck_dataflow_data_for_fn<'a, 'tcx>(
    tcx: &'a TyCtxt<'tcx>,
    mir_map: Option<&'a MirMap<'tcx>>,
    fn_parts: FnParts<'a>,
    cfg: &cfg::CFG)
    -> (BorrowckCtxt<'a, 'tcx>, AnalysisData<'a, 'tcx>)
{
    let mut bccx = BorrowckCtxt {
        tcx: tcx,
        mir_map: mir_map,
        free_region_map: FreeRegionMap::new(),
        stats: BorrowStats {
            loaned_paths_same: 0,
            loaned_paths_imm: 0,
            stable_paths: 0,
            guaranteed_paths: 0
        }
    };
    let dataflow_data = build_borrowck_dataflow_data(&mut bccx,
                                                     fn_parts.kind,
                                                     &fn_parts.decl,
                                                     cfg,
                                                     &fn_parts.body,
                                                     fn_parts.span,
                                                     fn_parts.id);
    (bccx, dataflow_data)
}
pub fn build_borrowck_dataflow_data_for_fn < ' a , ' tcx > ( tcx : & ' a TyCtxt < ' tcx > , mir_map : Option < & ' a MirMap < ' tcx > > , fn_parts : FnParts < ' a > , cfg : & cfg :: CFG ) -> ( BorrowckCtxt < ' a , ' tcx > , AnalysisData < ' a , ' tcx > ) { let mut bccx = BorrowckCtxt { tcx : tcx , mir_map : mir_map , free_region_map : FreeRegionMap :: new ( ) , stats : BorrowStats { loaned_paths_same : 0 , loaned_paths_imm : 0 , stable_paths : 0 , guaranteed_paths : 0 } } ; let dataflow_data = build_borrowck_dataflow_data ( & mut bccx , fn_parts . kind , & fn_parts . decl , cfg , & fn_parts . body , fn_parts . span , fn_parts . id ) ; ( bccx , dataflow_data ) }
Accessor for introspective clients inspecting `AnalysisData` and
the `BorrowckCtxt` itself , e.g.
Accessor for introspective clients inspecting ` AnalysisData ` and the ` BorrowckCtxt ` itself e . g .
tcx
&'a TyCtxt<'tcx>
mir_map
Option<&'a MirMap<'tcx>>
fn_parts
FnParts<'a>
cfg
&cfg::CFG
tcx
&'a TyCtxt<'tcx>
mir_map
Option<&'a MirMap<'tcx>>
fn_parts
FnParts<'a>
cfg
&cfg::CFG