Skip to content

Commit

Permalink
predecessors_for will be removed soon
Browse files Browse the repository at this point in the history
Co-Authored-By: ecstatic-morse <ecstaticmorse@gmail.com>
  • Loading branch information
tesuji and ecstatic-morse committed Apr 23, 2020
1 parent 9ef9b79 commit 3f6f392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/redundant_clone.rs
Expand Up @@ -145,7 +145,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantClone {
// `arg` is a reference as it is `.deref()`ed in the previous block.
// Look into the predecessor block and find out the source of deref.

let ps = mir.predecessors_for(bb);
let ps = &mir.predecessors()[bb];
if ps.len() != 1 {
continue;
}
Expand Down

0 comments on commit 3f6f392

Please sign in to comment.