mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
This commit is contained in:
parent
d3c40a1519
commit
68ed6ccf04
@ -93,7 +93,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RedundantClone {
|
||||
.into_results_cursor(mir);
|
||||
let mut possible_borrower = {
|
||||
let mut vis = PossibleBorrowerVisitor::new(cx, mir);
|
||||
vis.visit_body(mir_read_only);
|
||||
vis.visit_body(&mir_read_only);
|
||||
vis.into_map(cx, maybe_storage_live_result)
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user