diff options
| author | SparrowLii <liyuan179@huawei.com> | 2022-05-17 08:41:01 +0800 |
|---|---|---|
| committer | SparrowLii <liyuan179@huawei.com> | 2022-05-17 08:41:01 +0800 |
| commit | 38bf1158bd850c80de42599c28602ae11727a133 (patch) | |
| tree | a125d76abf6c8a63bb7060c0f1e200a8264b0c6f /compiler/rustc_mir_dataflow/src/framework/graphviz.rs | |
| parent | 56d540e0571ac1b0633ce10644224c495aaf42a0 (diff) | |
| download | rust-38bf1158bd850c80de42599c28602ae11727a133.tar.gz rust-38bf1158bd850c80de42599c28602ae11727a133.zip | |
Change `Successors` to `impl Iterator<Item = BasicBlock>`
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/framework/graphviz.rs')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/framework/graphviz.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/framework/graphviz.rs b/compiler/rustc_mir_dataflow/src/framework/graphviz.rs index 599b4087c78..c6a85bc43f4 100644 --- a/compiler/rustc_mir_dataflow/src/framework/graphviz.rs +++ b/compiler/rustc_mir_dataflow/src/framework/graphviz.rs @@ -125,7 +125,7 @@ where } fn target(&self, edge: &Self::Edge) -> Self::Node { - self.body[edge.source].terminator().successors().nth(edge.index).copied().unwrap() + self.body[edge.source].terminator().successors().nth(edge.index).unwrap() } } |
