diff options
| author | bors <bors@rust-lang.org> | 2022-05-17 12:01:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-17 12:01:12 +0000 |
| commit | 3655175a75f503c9855b6a73a9d3c83997354c1d (patch) | |
| tree | 7fd617295beefbc6c1264981717f2c0bdd5508a2 /compiler/rustc_mir_dataflow | |
| parent | 735efc0c703812343a5e5d19b600dac73b8a89f0 (diff) | |
| parent | 5fdc849bdc44b9170ee149770b590f5f0afb662f (diff) | |
Auto merge of #97111 - JohnTitor:rollup-x3vjf6u, r=JohnTitor
Rollup of 7 pull requests Successful merges: - #96329 (Add a couple tests for #90887 fixes) - #97009 (Allow `unused_macro_rules` in path tests) - #97075 (Add regression test for #81804) - #97079 (Change `Successors` to `impl Iterator<Item = BasicBlock>`) - #97080 (remove the `RelateResultCompare` trait) - #97093 (Migrate `maybe_recover_from_bad_type_plus` diagnostic) - #97102 (Update function pointer call error message) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_mir_dataflow')
| -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() } } |
