about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2022-07-05 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2022-07-07 08:11:49 +0200
commitcac25cde182ced8146e9f2b33e99bda31d2c70f9 (patch)
tree6f57c00084a6e343b7e3a32afa1d8decab4819cb
parente34ee2484b26f8ac7dfd9685ddfc1658e1b4475b (diff)
downloadrust-cac25cde182ced8146e9f2b33e99bda31d2c70f9.tar.gz
rust-cac25cde182ced8146e9f2b33e99bda31d2c70f9.zip
Move `predecessors` from Body to BasicBlocks
-rw-r--r--clippy_lints/src/redundant_clone.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/redundant_clone.rs b/clippy_lints/src/redundant_clone.rs
index 6d0b9a0f03f..eddca604575 100644
--- a/clippy_lints/src/redundant_clone.rs
+++ b/clippy_lints/src/redundant_clone.rs
@@ -161,7 +161,7 @@ impl<'tcx> LateLintPass<'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()[bb];
+                let ps = &mir.basic_blocks.predecessors()[bb];
                 if ps.len() != 1 {
                     continue;
                 }