@@ -184,12 +184,12 @@ macro_rules! make_mir_visitor {
184184
185185 /// This is called for every constant in the MIR body and every `required_consts`
186186 /// (i.e., including consts that have been dead-code-eliminated).
187- fn visit_constant (
187+ fn visit_const_operand (
188188 & mut self ,
189189 constant: & $( $mutability) ? ConstOperand <' tcx>,
190190 location: Location ,
191191 ) {
192- self . super_constant ( constant, location) ;
192+ self . super_const_operand ( constant, location) ;
193193 }
194194
195195 fn visit_ty_const(
@@ -597,7 +597,7 @@ macro_rules! make_mir_visitor {
597597 }
598598 InlineAsmOperand :: Const { value }
599599 | InlineAsmOperand :: SymFn { value } => {
600- self . visit_constant ( value, location) ;
600+ self . visit_const_operand ( value, location) ;
601601 }
602602 InlineAsmOperand :: Out { place: None , .. }
603603 | InlineAsmOperand :: SymStatic { def_id: _ }
@@ -788,7 +788,7 @@ macro_rules! make_mir_visitor {
788788 ) ;
789789 }
790790 Operand :: Constant ( constant) => {
791- self . visit_constant ( constant, location) ;
791+ self . visit_const_operand ( constant, location) ;
792792 }
793793 }
794794 }
@@ -867,7 +867,7 @@ macro_rules! make_mir_visitor {
867867 }
868868 }
869869 match value {
870- VarDebugInfoContents :: Const ( c) => self . visit_constant ( c, location) ,
870+ VarDebugInfoContents :: Const ( c) => self . visit_const_operand ( c, location) ,
871871 VarDebugInfoContents :: Place ( place) =>
872872 self . visit_place(
873873 place,
@@ -882,7 +882,7 @@ macro_rules! make_mir_visitor {
882882 _scope: $( & $mutability) ? SourceScope
883883 ) { }
884884
885- fn super_constant (
885+ fn super_const_operand (
886886 & mut self ,
887887 constant: & $( $mutability) ? ConstOperand <' tcx>,
888888 location: Location
@@ -1057,7 +1057,7 @@ macro_rules! super_body {
10571057
10581058 for const_ in & $( $mutability) ? $body. required_consts {
10591059 let location = Location :: START ;
1060- $self. visit_constant ( const_, location) ;
1060+ $self. visit_const_operand ( const_, location) ;
10611061 }
10621062 }
10631063}
0 commit comments