@@ -127,7 +127,7 @@ pub fn provide(providers: &mut Providers) {
127127 cross_crate_inline:: provide ( providers) ;
128128 providers. queries = query:: Providers {
129129 mir_keys,
130- mir_const ,
130+ mir_built ,
131131 mir_const_qualif,
132132 mir_promoted,
133133 mir_drops_elaborated_and_const_checked,
@@ -259,9 +259,9 @@ fn mir_const_qualif(tcx: TyCtxt<'_>, def: LocalDefId) -> ConstQualifs {
259259
260260 // N.B., this `borrow()` is guaranteed to be valid (i.e., the value
261261 // cannot yet be stolen), because `mir_promoted()`, which steals
262- // from `mir_const ()`, forces this query to execute before
262+ // from `mir_built ()`, forces this query to execute before
263263 // performing the steal.
264- let body = & tcx. mir_const ( def) . borrow ( ) ;
264+ let body = & tcx. mir_built ( def) . borrow ( ) ;
265265
266266 if body. return_ty ( ) . references_error ( ) {
267267 // It's possible to reach here without an error being emitted (#121103).
@@ -282,7 +282,7 @@ fn mir_const_qualif(tcx: TyCtxt<'_>, def: LocalDefId) -> ConstQualifs {
282282/// Make MIR ready for const evaluation. This is run on all MIR, not just on consts!
283283/// FIXME(oli-obk): it's unclear whether we still need this phase (and its corresponding query).
284284/// We used to have this for pre-miri MIR based const eval.
285- fn mir_const ( tcx : TyCtxt < ' _ > , def : LocalDefId ) -> & Steal < Body < ' _ > > {
285+ fn mir_built ( tcx : TyCtxt < ' _ > , def : LocalDefId ) -> & Steal < Body < ' _ > > {
286286 // MIR unsafety check uses the raw mir, so make sure it is run.
287287 if !tcx. sess . opts . unstable_opts . thir_unsafeck {
288288 tcx. ensure_with_value ( ) . mir_unsafety_check_result ( def) ;
@@ -338,7 +338,7 @@ fn mir_promoted(
338338 } ;
339339 // has_ffi_unwind_calls query uses the raw mir, so make sure it is run.
340340 tcx. ensure_with_value ( ) . has_ffi_unwind_calls ( def) ;
341- let mut body = tcx. mir_const ( def) . steal ( ) ;
341+ let mut body = tcx. mir_built ( def) . steal ( ) ;
342342 if let Some ( error_reported) = const_qualifs. tainted_by_errors {
343343 body. tainted_by_errors = Some ( error_reported) ;
344344 }
0 commit comments