Skip to content

Commit 3f6f392

Browse files
predecessors_for will be removed soon
Co-Authored-By: ecstatic-morse <[email protected]>
1 parent 9ef9b79 commit 3f6f392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_clone.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantClone {
145145
// `arg` is a reference as it is `.deref()`ed in the previous block.
146146
// Look into the predecessor block and find out the source of deref.
147147

148-
let ps = mir.predecessors_for(bb);
148+
let ps = &mir.predecessors()[bb];
149149
if ps.len() != 1 {
150150
continue;
151151
}

0 commit comments

Comments
 (0)