Make public borrowck api more accessible
This commit is contained in:
parent
dfe88bf1e5
commit
b1b40c7ef6
3 changed files with 14 additions and 28 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue