predecessors_for
will be removed soon
Co-Authored-By: ecstatic-morse <ecstaticmorse@gmail.com>
This commit is contained in:
parent
9ef9b7946f
commit
3f6f392730
@ -145,7 +145,7 @@ impl<'a, 'tcx> LateLintPass<'a, '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_for(bb);
|
||||
let ps = &mir.predecessors()[bb];
|
||||
if ps.len() != 1 {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user