@@ -200,21 +200,21 @@ fn turn_into_const<'tcx>(
200200 ) ;
201201 assert ! (
202202 !is_static || cid. promoted. is_some( ) ,
203- "the const eval query should not be used for statics, use `const_eval_raw ` instead"
203+ "the `const_eval_for_ty` query should not be used for statics, use `const_eval ` instead"
204204 ) ;
205205 // Turn this into a proper constant.
206206 op_to_const ( & ecx, mplace. into ( ) )
207207}
208208
209- pub fn const_eval_validated_provider < ' tcx > (
209+ pub fn const_eval_for_ty_provider < ' tcx > (
210210 tcx : TyCtxt < ' tcx > ,
211211 key : ty:: ParamEnvAnd < ' tcx , GlobalId < ' tcx > > ,
212212) -> :: rustc_middle:: mir:: interpret:: ConstEvalResult < ' tcx > {
213- // see comment in const_eval_raw_provider for what we're doing here
213+ // see comment in const_eval_provider for what we're doing here
214214 if key. param_env . reveal ( ) == Reveal :: All {
215215 let mut key = key;
216216 key. param_env = key. param_env . with_user_facing ( ) ;
217- match tcx. const_eval_validated ( key) {
217+ match tcx. const_eval_for_ty ( key) {
218218 // try again with reveal all as requested
219219 Err ( ErrorHandled :: TooGeneric ) => { }
220220 // deduplicate calls
@@ -237,10 +237,10 @@ pub fn const_eval_validated_provider<'tcx>(
237237 } ) ;
238238 }
239239
240- tcx. const_eval_raw ( key) . map ( |val| turn_into_const ( tcx, val, key) )
240+ tcx. const_eval ( key) . map ( |val| turn_into_const ( tcx, val, key) )
241241}
242242
243- pub fn const_eval_raw_provider < ' tcx > (
243+ pub fn const_eval_provider < ' tcx > (
244244 tcx : TyCtxt < ' tcx > ,
245245 key : ty:: ParamEnvAnd < ' tcx , GlobalId < ' tcx > > ,
246246) -> :: rustc_middle:: mir:: interpret:: ConstEvalRawResult < ' tcx > {
@@ -255,7 +255,7 @@ pub fn const_eval_raw_provider<'tcx>(
255255 if key. param_env . reveal ( ) == Reveal :: All {
256256 let mut key = key;
257257 key. param_env = key. param_env . with_user_facing ( ) ;
258- match tcx. const_eval_raw ( key) {
258+ match tcx. const_eval ( key) {
259259 // try again with reveal all as requested
260260 Err ( ErrorHandled :: TooGeneric ) => { }
261261 // deduplicate calls
0 commit comments