@@ -49,7 +49,7 @@ pub(crate) fn provide(providers: &mut Providers) {
49
49
mir_keys,
50
50
mir_const,
51
51
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 ( ) ) )
53
53
} ,
54
54
mir_const_qualif_const_arg : |tcx, ( did, param_did) | {
55
55
mir_const_qualif ( tcx, ty:: WithOptConstParam { did, const_param_did : Some ( param_did) } )
@@ -60,7 +60,7 @@ pub(crate) fn provide(providers: &mut Providers) {
60
60
optimized_mir_of_const_arg,
61
61
is_mir_available,
62
62
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 ( ) ) )
64
64
} ,
65
65
promoted_mir_of_const_arg : |tcx, ( did, param_did) | {
66
66
promoted_mir ( tcx, ty:: WithOptConstParam { did, const_param_did : Some ( param_did) } )
@@ -128,7 +128,7 @@ pub struct MirSource<'tcx> {
128
128
impl < ' tcx > MirSource < ' tcx > {
129
129
pub fn item ( def_id : DefId ) -> Self {
130
130
MirSource {
131
- instance : InstanceDef :: Item ( ty:: WithOptConstParam :: dummy ( def_id) ) ,
131
+ instance : InstanceDef :: Item ( ty:: WithOptConstParam :: unknown ( def_id) ) ,
132
132
promoted : None ,
133
133
}
134
134
}
@@ -414,7 +414,7 @@ fn run_post_borrowck_cleanup_passes<'tcx>(
414
414
run_passes (
415
415
tcx,
416
416
body,
417
- InstanceDef :: Item ( ty:: WithOptConstParam :: dummy ( def_id. to_def_id ( ) ) ) ,
417
+ InstanceDef :: Item ( ty:: WithOptConstParam :: unknown ( def_id. to_def_id ( ) ) ) ,
418
418
promoted,
419
419
MirPhase :: DropElab ,
420
420
& [ post_borrowck_cleanup] ,
@@ -478,7 +478,7 @@ fn run_optimization_passes<'tcx>(
478
478
run_passes (
479
479
tcx,
480
480
body,
481
- InstanceDef :: Item ( ty:: WithOptConstParam :: dummy ( def_id. to_def_id ( ) ) ) ,
481
+ InstanceDef :: Item ( ty:: WithOptConstParam :: unknown ( def_id. to_def_id ( ) ) ) ,
482
482
promoted,
483
483
MirPhase :: Optimized ,
484
484
& [
@@ -493,7 +493,7 @@ fn optimized_mir<'tcx>(tcx: TyCtxt<'tcx>, did: DefId) -> &'tcx Body<'tcx> {
493
493
if let Some ( param_did) = tcx. opt_const_param_of ( did) {
494
494
tcx. optimized_mir_of_const_arg ( ( did, param_did) )
495
495
} 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) ) )
497
497
}
498
498
}
499
499
0 commit comments