@@ -108,8 +108,8 @@ pub trait MirVisitor {
108108 self . super_ty ( ty)
109109 }
110110
111- fn visit_constant ( & mut self , constant : & Constant , location : Location ) {
112- self . super_constant ( constant, location)
111+ fn visit_const_operand ( & mut self , constant : & ConstOperand , location : Location ) {
112+ self . super_const_operand ( constant, location)
113113 }
114114
115115 fn visit_mir_const ( & mut self , constant : & MirConst , location : Location ) {
@@ -366,7 +366,7 @@ pub trait MirVisitor {
366366 self . visit_place ( place, PlaceContext :: NON_MUTATING , location)
367367 }
368368 Operand :: Constant ( constant) => {
369- self . visit_constant ( constant, location) ;
369+ self . visit_const_operand ( constant, location) ;
370370 }
371371 }
372372 }
@@ -380,10 +380,10 @@ pub trait MirVisitor {
380380 let _ = ty;
381381 }
382382
383- fn super_constant ( & mut self , constant : & Constant , location : Location ) {
384- let Constant { span, user_ty : _, literal } = constant;
383+ fn super_const_operand ( & mut self , constant : & ConstOperand , location : Location ) {
384+ let ConstOperand { span, user_ty : _, const_ } = constant;
385385 self . visit_span ( span) ;
386- self . visit_mir_const ( literal , location) ;
386+ self . visit_mir_const ( const_ , location) ;
387387 }
388388
389389 fn super_mir_const ( & mut self , constant : & MirConst , location : Location ) {
0 commit comments