X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_borrowck%2Fgraphviz.rs;h=1f2480666959e17eca3fdae778344c73c15c35ec;hb=fff08cb04389497d254fb40948674cbbee402908;hp=77056d4d3eb1516df86cf751ff23b998618f5ec9;hpb=82e051b6cea6f64bec78ba5e691b900d30eef933;p=rust.git diff --git a/src/librustc_borrowck/graphviz.rs b/src/librustc_borrowck/graphviz.rs index 77056d4d3eb..1f248066695 100644 --- a/src/librustc_borrowck/graphviz.rs +++ b/src/librustc_borrowck/graphviz.rs @@ -34,7 +34,7 @@ pub struct DataflowLabeller<'a, 'tcx: 'a> { pub inner: cfg_dot::LabelledCFG<'a, 'tcx>, pub variants: Vec, pub borrowck_ctxt: &'a BorrowckCtxt<'a, 'tcx>, - pub analysis_data: &'a borrowck::AnalysisData<'a, 'tcx>, + pub analysis_data: &'a borrowck::AnalysisData<'tcx>, } impl<'a, 'tcx> DataflowLabeller<'a, 'tcx> { @@ -61,11 +61,14 @@ fn dataflow_for_variant(&self, e: EntryOrExit, n: &Node<'_>, v: Variant) -> Stri } } - fn build_set(&self, - e: EntryOrExit, - cfgidx: CFGIndex, - dfcx: &DataFlowContext<'a, 'tcx, O>, - mut to_lp: F) -> String where + fn build_set( + &self, + e: EntryOrExit, + cfgidx: CFGIndex, + dfcx: &DataFlowContext<'tcx, O>, + mut to_lp: F, + ) -> String + where F: FnMut(usize) -> Rc>, { let mut saw_some = false;