File tree 1 file changed +3
-7
lines changed
compiler/rustc_borrowck/src
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -300,18 +300,14 @@ fn do_mir_borrowck<'tcx>(
300
300
move_errors : Vec :: new ( ) ,
301
301
diags,
302
302
} ;
303
- MoveVisitor { ctxt : & mut promoted_mbcx } . visit_body ( promoted_body) ;
303
+ promoted_mbcx. visit_body ( promoted_body) ;
304
304
promoted_mbcx. report_move_errors ( ) ;
305
305
diags = promoted_mbcx. diags ;
306
306
307
- struct MoveVisitor < ' a , ' mir , ' infcx , ' tcx > {
308
- ctxt : & ' a mut MirBorrowckCtxt < ' mir , ' infcx , ' tcx > ,
309
- }
310
-
311
- impl < ' tcx > Visitor < ' tcx > for MoveVisitor < ' _ , ' _ , ' _ , ' tcx > {
307
+ impl < ' tcx > Visitor < ' tcx > for MirBorrowckCtxt < ' _ , ' _ , ' tcx > {
312
308
fn visit_operand ( & mut self , operand : & Operand < ' tcx > , location : Location ) {
313
309
if let Operand :: Move ( place) = operand {
314
- self . ctxt . check_movable_place ( location, * place) ;
310
+ self . check_movable_place ( location, * place) ;
315
311
}
316
312
}
317
313
}
You can’t perform that action at this time.
0 commit comments