@@ -122,7 +122,7 @@ fn op_to_const<'tcx>(
122122/// Extracts a field of a (variant of a) const.
123123// this function uses `unwrap` copiously, because an already validated constant must have valid
124124// fields and can thus never fail outside of compiler bugs
125- pub fn const_field < ' tcx > (
125+ pub ( crate ) fn const_field < ' tcx > (
126126 tcx : TyCtxt < ' tcx > ,
127127 param_env : ty:: ParamEnv < ' tcx > ,
128128 variant : Option < VariantIdx > ,
@@ -145,7 +145,7 @@ pub fn const_field<'tcx>(
145145 op_to_const ( & ecx, field)
146146}
147147
148- pub fn const_caller_location < ' tcx > (
148+ pub ( crate ) fn const_caller_location < ' tcx > (
149149 tcx : TyCtxt < ' tcx > ,
150150 ( file, line, col) : ( Symbol , u32 , u32 ) ,
151151) -> & ' tcx ty:: Const < ' tcx > {
@@ -165,7 +165,7 @@ pub fn const_caller_location<'tcx>(
165165
166166// this function uses `unwrap` copiously, because an already validated constant must have valid
167167// 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 > (
169169 tcx : TyCtxt < ' tcx > ,
170170 param_env : ty:: ParamEnv < ' tcx > ,
171171 val : & ' tcx ty:: Const < ' tcx > ,
0 commit comments