@@ -235,12 +235,6 @@ macro_rules! make_mir_visitor {
235235 self . super_const_usize( const_usize) ;
236236 }
237237
238- fn visit_typed_const_val( & mut self ,
239- val: & $( $mutability) * TypedConstVal <' tcx>,
240- location: Location ) {
241- self . super_typed_const_val( val, location) ;
242- }
243-
244238 fn visit_local_decl( & mut self ,
245239 local_decl: & $( $mutability) * LocalDecl <' tcx>) {
246240 self . super_local_decl( local_decl) ;
@@ -467,9 +461,9 @@ macro_rules! make_mir_visitor {
467461 }
468462
469463 Rvalue :: Repeat ( ref $( $mutability) * value,
470- ref $( $mutability) * typed_const_val ) => {
464+ ref $( $mutability) * length ) => {
471465 self . visit_operand( value, location) ;
472- self . visit_typed_const_val ( typed_const_val , location) ;
466+ self . visit_const_usize ( length , location) ;
473467 }
474468
475469 Rvalue :: Ref ( r, bk, ref $( $mutability) * path) => {
@@ -648,20 +642,6 @@ macro_rules! make_mir_visitor {
648642 self . visit_literal( literal, location) ;
649643 }
650644
651- fn super_typed_const_val( & mut self ,
652- constant: & $( $mutability) * TypedConstVal <' tcx>,
653- location: Location ) {
654- let TypedConstVal {
655- ref $( $mutability) * span,
656- ref $( $mutability) * ty,
657- ref $( $mutability) * value,
658- } = * constant;
659-
660- self . visit_span( span) ;
661- self . visit_ty( ty) ;
662- self . visit_const_usize( value, location) ;
663- }
664-
665645 fn super_literal( & mut self ,
666646 literal: & $( $mutability) * Literal <' tcx>,
667647 location: Location ) {
0 commit comments