@@ -12,7 +12,7 @@ use rustc_middle::mir::traversal;
1212use rustc_middle:: mir:: visit:: { PlaceContext , Visitor } ;
1313use rustc_middle:: mir:: {
1414 AggregateKind , BasicBlock , Body , BorrowKind , Local , Location , MirPhase , Operand , PlaceRef ,
15- Rvalue , SourceScope , Statement , StatementKind , Terminator , TerminatorKind , VarDebugInfo ,
15+ Rvalue , SourceScope , Statement , StatementKind , Terminator , TerminatorKind ,
1616} ;
1717use rustc_middle:: ty:: fold:: BottomUpFolder ;
1818use rustc_middle:: ty:: { self , ParamEnv , Ty , TyCtxt , TypeFoldable } ;
@@ -200,12 +200,6 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
200200 }
201201 }
202202
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-
209203 fn visit_operand ( & mut self , operand : & Operand < ' tcx > , location : Location ) {
210204 // This check is somewhat expensive, so only run it when -Zvalidate-mir is passed.
211205 if self . tcx . sess . opts . debugging_opts . validate_mir {
0 commit comments