@@ -49,7 +49,7 @@ pub(crate) fn provide(providers: &mut Providers) {
4949 mir_keys,
5050 mir_const,
5151 mir_const_qualif : |tcx, did| {
52- mir_const_qualif ( tcx, ty:: WithOptConstParam :: dummy ( did. expect_local ( ) ) )
52+ mir_const_qualif ( tcx, ty:: WithOptConstParam :: unknown ( did. expect_local ( ) ) )
5353 } ,
5454 mir_const_qualif_const_arg : |tcx, ( did, param_did) | {
5555 mir_const_qualif ( tcx, ty:: WithOptConstParam { did, const_param_did : Some ( param_did) } )
@@ -60,7 +60,7 @@ pub(crate) fn provide(providers: &mut Providers) {
6060 optimized_mir_of_const_arg,
6161 is_mir_available,
6262 promoted_mir : |tcx, def_id| {
63- promoted_mir ( tcx, ty:: WithOptConstParam :: dummy ( def_id. expect_local ( ) ) )
63+ promoted_mir ( tcx, ty:: WithOptConstParam :: unknown ( def_id. expect_local ( ) ) )
6464 } ,
6565 promoted_mir_of_const_arg : |tcx, ( did, param_did) | {
6666 promoted_mir ( tcx, ty:: WithOptConstParam { did, const_param_did : Some ( param_did) } )
@@ -128,7 +128,7 @@ pub struct MirSource<'tcx> {
128128impl < ' tcx > MirSource < ' tcx > {
129129 pub fn item ( def_id : DefId ) -> Self {
130130 MirSource {
131- instance : InstanceDef :: Item ( ty:: WithOptConstParam :: dummy ( def_id) ) ,
131+ instance : InstanceDef :: Item ( ty:: WithOptConstParam :: unknown ( def_id) ) ,
132132 promoted : None ,
133133 }
134134 }
@@ -414,7 +414,7 @@ fn run_post_borrowck_cleanup_passes<'tcx>(
414414 run_passes (
415415 tcx,
416416 body,
417- InstanceDef :: Item ( ty:: WithOptConstParam :: dummy ( def_id. to_def_id ( ) ) ) ,
417+ InstanceDef :: Item ( ty:: WithOptConstParam :: unknown ( def_id. to_def_id ( ) ) ) ,
418418 promoted,
419419 MirPhase :: DropElab ,
420420 & [ post_borrowck_cleanup] ,
@@ -478,7 +478,7 @@ fn run_optimization_passes<'tcx>(
478478 run_passes (
479479 tcx,
480480 body,
481- InstanceDef :: Item ( ty:: WithOptConstParam :: dummy ( def_id. to_def_id ( ) ) ) ,
481+ InstanceDef :: Item ( ty:: WithOptConstParam :: unknown ( def_id. to_def_id ( ) ) ) ,
482482 promoted,
483483 MirPhase :: Optimized ,
484484 & [
@@ -493,7 +493,7 @@ fn optimized_mir<'tcx>(tcx: TyCtxt<'tcx>, did: DefId) -> &'tcx Body<'tcx> {
493493 if let Some ( param_did) = tcx. opt_const_param_of ( did) {
494494 tcx. optimized_mir_of_const_arg ( ( did, param_did) )
495495 } else {
496- tcx. arena . alloc ( inner_optimized_mir ( tcx, ty:: WithOptConstParam :: dummy ( did) ) )
496+ tcx. arena . alloc ( inner_optimized_mir ( tcx, ty:: WithOptConstParam :: unknown ( did) ) )
497497 }
498498}
499499
0 commit comments