@@ -235,12 +235,6 @@ macro_rules! make_mir_visitor {
235
235
self . super_const_usize( const_usize) ;
236
236
}
237
237
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
-
244
238
fn visit_local_decl( & mut self ,
245
239
local_decl: & $( $mutability) * LocalDecl <' tcx>) {
246
240
self . super_local_decl( local_decl) ;
@@ -467,9 +461,9 @@ macro_rules! make_mir_visitor {
467
461
}
468
462
469
463
Rvalue :: Repeat ( ref $( $mutability) * value,
470
- ref $( $mutability) * typed_const_val ) => {
464
+ ref $( $mutability) * length ) => {
471
465
self . visit_operand( value, location) ;
472
- self . visit_typed_const_val ( typed_const_val , location) ;
466
+ self . visit_const_usize ( length , location) ;
473
467
}
474
468
475
469
Rvalue :: Ref ( r, bk, ref $( $mutability) * path) => {
@@ -648,20 +642,6 @@ macro_rules! make_mir_visitor {
648
642
self . visit_literal( literal, location) ;
649
643
}
650
644
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
-
665
645
fn super_literal( & mut self ,
666
646
literal: & $( $mutability) * Literal <' tcx>,
667
647
location: Location ) {
0 commit comments