mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-28 06:45:46 +00:00
This commit is contained in:
@@ -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)
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user