diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-07-05 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-07-07 08:11:49 +0200 |
| commit | cac25cde182ced8146e9f2b33e99bda31d2c70f9 (patch) | |
| tree | 6f57c00084a6e343b7e3a32afa1d8decab4819cb | |
| parent | e34ee2484b26f8ac7dfd9685ddfc1658e1b4475b (diff) | |
| download | rust-cac25cde182ced8146e9f2b33e99bda31d2c70f9.tar.gz rust-cac25cde182ced8146e9f2b33e99bda31d2c70f9.zip | |
Move `predecessors` from Body to BasicBlocks
| -rw-r--r-- | clippy_lints/src/redundant_clone.rs | 2 |
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; } |
