@@ -14,9 +14,9 @@ use rustc_middle::hir::nested_filter::OnlyBodies;
1414use rustc_middle:: mir:: tcx:: PlaceTy ;
1515use rustc_middle:: mir:: {
1616 self , AggregateKind , BindingForm , BorrowKind , CallSource , ClearCrossCrate , ConstraintCategory ,
17- FakeReadCause , LocalDecl , LocalInfo , LocalKind , Location , MutBorrowKind , Operand , Place ,
18- PlaceRef , ProjectionElem , Rvalue , Statement , StatementKind , Terminator , TerminatorKind ,
19- VarBindingForm ,
17+ FakeReadCause , FakeReadCauseAndPlace , LocalDecl , LocalInfo , LocalKind , Location , MutBorrowKind ,
18+ Operand , Place , PlaceRef , ProjectionElem , Rvalue , Statement , StatementKind , Terminator ,
19+ TerminatorKind , VarBindingForm ,
2020} ;
2121use rustc_middle:: ty:: { self , suggest_constraining_type_params, PredicateKind , Ty } ;
2222use rustc_middle:: util:: CallKind ;
@@ -3010,9 +3010,10 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
30103010 impl < ' tcx > Visitor < ' tcx > for FakeReadCauseFinder < ' tcx > {
30113011 fn visit_statement ( & mut self , statement : & Statement < ' tcx > , _: Location ) {
30123012 match statement {
3013- Statement { kind : StatementKind :: FakeRead ( box ( cause, place) ) , .. }
3014- if * place == self . place =>
3015- {
3013+ Statement {
3014+ kind : StatementKind :: FakeRead ( box FakeReadCauseAndPlace ( cause, place) ) ,
3015+ ..
3016+ } if * place == self . place => {
30163017 self . cause = Some ( * cause) ;
30173018 }
30183019 _ => ( ) ,
0 commit comments