This commit is contained in:
Philipp Hansch 2020-03-30 07:34:19 +02:00
parent d3c40a1519
commit 68ed6ccf04
No known key found for this signature in database
GPG Key ID: 82AA61CAA11397E6

View File

@ -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)
};