X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Flibrustc_mir%2Fdataflow%2Fgraphviz.rs;h=a9ef7ef6c528a2a93aa79472e0de2de4470a6b33;hb=74b04a01b71feddabe49b31d752556fa1583ee23;hp=45d2b1a71f0f2298530ef54e9f506da6869a0324;hpb=dfeec24772faa596859f8270a4eaeeca54752913;p=rustc.git diff --git a/src/librustc_mir/dataflow/graphviz.rs b/src/librustc_mir/dataflow/graphviz.rs index 45d2b1a71f..a9ef7ef6c5 100644 --- a/src/librustc_mir/dataflow/graphviz.rs +++ b/src/librustc_mir/dataflow/graphviz.rs @@ -72,7 +72,7 @@ pub struct Edge { fn outgoing(body: &Body<'_>, bb: BasicBlock) -> Vec { (0..body[bb].terminator().successors().count()) - .map(|index| Edge { source: bb, index: index }) + .map(|index| Edge { source: bb, index }) .collect() }