Skip to content

Commit cac25cd

Browse files
committed
Move predecessors from Body to BasicBlocks
1 parent e34ee24 commit cac25cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
161161
// `arg` is a reference as it is `.deref()`ed in the previous block.
162162
// Look into the predecessor block and find out the source of deref.
163163

164-
let ps = &mir.predecessors()[bb];
164+
let ps = &mir.basic_blocks.predecessors()[bb];
165165
if ps.len() != 1 {
166166
continue;
167167
}

0 commit comments

Comments
 (0)