@@ -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 } ;
@@ -198,12 +198,6 @@ impl<'a, 'tcx> Visitor<'tcx> for TypeChecker<'a, 'tcx> {
198198 }
199199 }
200200
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-
207201 fn visit_operand ( & mut self , operand : & Operand < ' tcx > , location : Location ) {
208202 // This check is somewhat expensive, so only run it when -Zvalidate-mir is passed.
209203 if self . tcx . sess . opts . debugging_opts . validate_mir {
0 commit comments