Rollup merge of #108104 - matthiaskrgr:into, r=compiler-errors
don't into self don't into()-convert types to themselves
This commit is contained in:
commit
9b2ee4192e
3 changed files with 4 additions and 5 deletions
|
@ -47,8 +47,7 @@ fn has_back_edge(
|
|||
return false;
|
||||
}
|
||||
// Check if any of the dominators of the node are also the node's successor.
|
||||
doms.dominators(node)
|
||||
.any(|dom| node_data.terminator().successors().into_iter().any(|succ| succ == dom))
|
||||
doms.dominators(node).any(|dom| node_data.terminator().successors().any(|succ| succ == dom))
|
||||
}
|
||||
|
||||
fn insert_counter(basic_block_data: &mut BasicBlockData<'_>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue