We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
predecessors
1 parent e34ee24 commit cac25cdCopy full SHA for cac25cd
clippy_lints/src/redundant_clone.rs
@@ -161,7 +161,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
161
// `arg` is a reference as it is `.deref()`ed in the previous block.
162
// Look into the predecessor block and find out the source of deref.
163
164
- let ps = &mir.predecessors()[bb];
+ let ps = &mir.basic_blocks.predecessors()[bb];
165
if ps.len() != 1 {
166
continue;
167
}
0 commit comments