@@ -12,7 +12,7 @@ use rustc_middle::mir::traversal;
12
12
use rustc_middle:: mir:: visit:: { PlaceContext , Visitor } ;
13
13
use rustc_middle:: mir:: {
14
14
AggregateKind , BasicBlock , Body , BorrowKind , Local , Location , MirPhase , Operand , PlaceRef ,
15
- Rvalue , SourceScope , Statement , StatementKind , Terminator , TerminatorKind , VarDebugInfo ,
15
+ Rvalue , SourceScope , Statement , StatementKind , Terminator , TerminatorKind ,
16
16
} ;
17
17
use rustc_middle:: ty:: fold:: BottomUpFolder ;
18
18
use rustc_middle:: ty:: { self , ParamEnv , Ty , TyCtxt , TypeFoldable } ;
@@ -200,12 +200,6 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
200
200
}
201
201
}
202
202
203
- fn visit_var_debug_info ( & mut self , var_debug_info : & VarDebugInfo < ' tcx > ) {
204
- // Debuginfo can contain field projections, which count as a use of the base local. Skip
205
- // debuginfo so that we avoid the storage liveness assertion in that case.
206
- self . visit_source_info ( & var_debug_info. source_info ) ;
207
- }
208
-
209
203
fn visit_operand ( & mut self , operand : & Operand < ' tcx > , location : Location ) {
210
204
// This check is somewhat expensive, so only run it when -Zvalidate-mir is passed.
211
205
if self . tcx . sess . opts . debugging_opts . validate_mir {
0 commit comments