pub fn build_borrowck_dataflow_data_for_fn<'a, 'tcx>(
    tcx: TyCtxt<'a, 'tcx, 'tcx>,
    body_id: hir::BodyId,
    cfg: &cfg::CFG)
    -> (BorrowckCtxt<'a, 'tcx>, AnalysisData<'a, 'tcx>)
{
    let owner_id = tcx.hir.body_owner(body_id);
    let owner_def_id = tcx.hir.local_def_id(owner_id);
    let tables = tcx.typeck_tables_of(owner_def_id);
    let region_maps = tcx.region_maps(owner_def_id);
    let mut bccx = BorrowckCtxt { tcx, tables, region_maps, owner_def_id };

    let dataflow_data = build_borrowck_dataflow_data(&mut bccx, cfg, body_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: TyCtxt<'a, 'tcx, 'tcx>,
    body_id: hir::BodyId,
    cfg: &cfg::CFG)
    -> (BorrowckCtxt<'a, 'tcx>, AnalysisData<'a, 'tcx>)
{
    let owner_id = tcx.hir.body_owner(body_id);
    let owner_def_id = tcx.hir.local_def_id(owner_id);
    let tables = tcx.typeck_tables_of(owner_def_id);
    let region_maps = tcx.region_maps(owner_def_id);
    let mut bccx = BorrowckCtxt { tcx, tables, region_maps, owner_def_id };
    let dataflow_data = build_borrowck_dataflow_data(&mut bccx, cfg, body_id);
    (bccx, dataflow_data)
}
pub fn build_borrowck_dataflow_data_for_fn < ' a , ' tcx > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > , body_id : hir :: BodyId , cfg : & cfg :: CFG ) -> ( BorrowckCtxt < ' a , ' tcx > , AnalysisData < ' a , ' tcx > ) { let owner_id = tcx . hir . body_owner ( body_id ) ; let owner_def_id = tcx . hir . local_def_id ( owner_id ) ; let tables = tcx . typeck_tables_of ( owner_def_id ) ; let region_maps = tcx . region_maps ( owner_def_id ) ; let mut bccx = BorrowckCtxt { tcx , tables , region_maps , owner_def_id } ; let dataflow_data = build_borrowck_dataflow_data ( & mut bccx , cfg , body_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
TyCtxt<'a, 'tcx, 'tcx>
body_id
hir::BodyId
cfg
&cfg::CFG
tcx
TyCtxt<'a, 'tcx, 'tcx>
body_id
hir::BodyId
cfg
&cfg::CFG