@@ -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 } ;
@@ -198,12 +198,6 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
198
198
}
199
199
}
200
200
201
- fn visit_var_debug_info ( & mut self , var_debug_info : & VarDebugInfo < ' tcx > ) {
202
- // Debuginfo can contain field projections, which count as a use of the base local. Skip
203
- // debuginfo so that we avoid the storage liveness assertion in that case.
204
- self . visit_source_info ( & var_debug_info. source_info ) ;
205
- }
206
-
207
201
fn visit_operand ( & mut self , operand : & Operand < ' tcx > , location : Location ) {
208
202
// This check is somewhat expensive, so only run it when -Zvalidate-mir is passed.
209
203
if self . tcx . sess . opts . debugging_opts . validate_mir {
0 commit comments