@@ -122,7 +122,7 @@ fn op_to_const<'tcx>(
122
122
/// Extracts a field of a (variant of a) const.
123
123
// this function uses `unwrap` copiously, because an already validated constant must have valid
124
124
// fields and can thus never fail outside of compiler bugs
125
- pub fn const_field < ' tcx > (
125
+ pub ( crate ) fn const_field < ' tcx > (
126
126
tcx : TyCtxt < ' tcx > ,
127
127
param_env : ty:: ParamEnv < ' tcx > ,
128
128
variant : Option < VariantIdx > ,
@@ -145,7 +145,7 @@ pub fn const_field<'tcx>(
145
145
op_to_const ( & ecx, field)
146
146
}
147
147
148
- pub fn const_caller_location < ' tcx > (
148
+ pub ( crate ) fn const_caller_location < ' tcx > (
149
149
tcx : TyCtxt < ' tcx > ,
150
150
( file, line, col) : ( Symbol , u32 , u32 ) ,
151
151
) -> & ' tcx ty:: Const < ' tcx > {
@@ -165,7 +165,7 @@ pub fn const_caller_location<'tcx>(
165
165
166
166
// this function uses `unwrap` copiously, because an already validated constant must have valid
167
167
// fields and can thus never fail outside of compiler bugs
168
- pub fn const_variant_index < ' tcx > (
168
+ pub ( crate ) fn const_variant_index < ' tcx > (
169
169
tcx : TyCtxt < ' tcx > ,
170
170
param_env : ty:: ParamEnv < ' tcx > ,
171
171
val : & ' tcx ty:: Const < ' tcx > ,
0 commit comments