@@ -184,12 +184,12 @@ macro_rules! make_mir_visitor {
184
184
185
185
/// This is called for every constant in the MIR body and every `required_consts`
186
186
/// (i.e., including consts that have been dead-code-eliminated).
187
- fn visit_constant (
187
+ fn visit_const_operand (
188
188
& mut self ,
189
189
constant: & $( $mutability) ? ConstOperand <' tcx>,
190
190
location: Location ,
191
191
) {
192
- self . super_constant ( constant, location) ;
192
+ self . super_const_operand ( constant, location) ;
193
193
}
194
194
195
195
fn visit_ty_const(
@@ -597,7 +597,7 @@ macro_rules! make_mir_visitor {
597
597
}
598
598
InlineAsmOperand :: Const { value }
599
599
| InlineAsmOperand :: SymFn { value } => {
600
- self . visit_constant ( value, location) ;
600
+ self . visit_const_operand ( value, location) ;
601
601
}
602
602
InlineAsmOperand :: Out { place: None , .. }
603
603
| InlineAsmOperand :: SymStatic { def_id: _ }
@@ -788,7 +788,7 @@ macro_rules! make_mir_visitor {
788
788
) ;
789
789
}
790
790
Operand :: Constant ( constant) => {
791
- self . visit_constant ( constant, location) ;
791
+ self . visit_const_operand ( constant, location) ;
792
792
}
793
793
}
794
794
}
@@ -867,7 +867,7 @@ macro_rules! make_mir_visitor {
867
867
}
868
868
}
869
869
match value {
870
- VarDebugInfoContents :: Const ( c) => self . visit_constant ( c, location) ,
870
+ VarDebugInfoContents :: Const ( c) => self . visit_const_operand ( c, location) ,
871
871
VarDebugInfoContents :: Place ( place) =>
872
872
self . visit_place(
873
873
place,
@@ -882,7 +882,7 @@ macro_rules! make_mir_visitor {
882
882
_scope: $( & $mutability) ? SourceScope
883
883
) { }
884
884
885
- fn super_constant (
885
+ fn super_const_operand (
886
886
& mut self ,
887
887
constant: & $( $mutability) ? ConstOperand <' tcx>,
888
888
location: Location
@@ -1057,7 +1057,7 @@ macro_rules! super_body {
1057
1057
1058
1058
for const_ in & $( $mutability) ? $body. required_consts {
1059
1059
let location = Location :: START ;
1060
- $self. visit_constant ( const_, location) ;
1060
+ $self. visit_const_operand ( const_, location) ;
1061
1061
}
1062
1062
}
1063
1063
}
0 commit comments