Make public borrowck api more accessible

This commit is contained in:
Florian Hahn 2015-12-03 11:07:08 +01:00
parent dfe88bf1e5
commit b1b40c7ef6
3 changed files with 14 additions and 28 deletions

View file

@ -887,9 +887,10 @@ fn print_flowgraph<W: Write>(variants: Vec<borrowck_dot::Variant>,
return Ok(());
}
blocks::FnLikeCode(fn_like) => {
let fn_parts = borrowck::FnPartsWithCFG::from_fn_like(&fn_like, &cfg);
let (bccx, analysis_data) = borrowck::build_borrowck_dataflow_data_for_fn(tcx,
fn_parts);
let (bccx, analysis_data) =
borrowck::build_borrowck_dataflow_data_for_fn(tcx,
fn_like.to_fn_parts(),
&cfg);
let lcfg = borrowck_dot::DataflowLabeller {
inner: lcfg,