Skip to content

Commit 9d5daa6

Browse files
committed
Fix error after rebase
1 parent 7926664 commit 9d5daa6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clippy_lints/src/loops/mut_range_bound.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use if_chain::if_chain;
44
use rustc_hir::{BindingAnnotation, Expr, HirId, Node, PatKind};
55
use rustc_infer::infer::TyCtxtInferExt;
66
use rustc_lint::LateContext;
7+
use rustc_middle::mir::FakeReadCause;
78
use rustc_middle::ty;
89
use rustc_span::source_map::Span;
910
use rustc_typeck::expr_use_visitor::{ConsumeMode, Delegate, ExprUseVisitor, PlaceBase, PlaceWithHirId};
@@ -106,6 +107,8 @@ impl<'tcx> Delegate<'tcx> for MutatePairDelegate<'_, 'tcx> {
106107
}
107108
}
108109
}
110+
111+
fn fake_read(&mut self, _: rustc_typeck::expr_use_visitor::Place<'tcx>, _: FakeReadCause, _:HirId) { }
109112
}
110113

111114
impl MutatePairDelegate<'_, '_> {

0 commit comments

Comments
 (0)