@@ -50,7 +50,7 @@ pub(crate) fn provide(providers: &mut Providers) {
50
50
mir_const,
51
51
mir_const_qualif : |tcx, def_id| {
52
52
let def_id = def_id. expect_local ( ) ;
53
- if let Some ( def) = ty:: WithOptConstParam :: try_fetch ( def_id, tcx) {
53
+ if let Some ( def) = ty:: WithOptConstParam :: try_lookup ( def_id, tcx) {
54
54
tcx. mir_const_qualif_const_arg ( def)
55
55
} else {
56
56
mir_const_qualif ( tcx, ty:: WithOptConstParam :: unknown ( def_id) )
@@ -66,7 +66,7 @@ pub(crate) fn provide(providers: &mut Providers) {
66
66
is_mir_available,
67
67
promoted_mir : |tcx, def_id| {
68
68
let def_id = def_id. expect_local ( ) ;
69
- if let Some ( def) = ty:: WithOptConstParam :: try_fetch ( def_id, tcx) {
69
+ if let Some ( def) = ty:: WithOptConstParam :: try_lookup ( def_id, tcx) {
70
70
tcx. promoted_mir_of_const_arg ( def)
71
71
} else {
72
72
promoted_mir ( tcx, ty:: WithOptConstParam :: unknown ( def_id) )
@@ -485,7 +485,7 @@ fn run_optimization_passes<'tcx>(
485
485
486
486
fn optimized_mir < ' tcx > ( tcx : TyCtxt < ' tcx > , did : DefId ) -> & ' tcx Body < ' tcx > {
487
487
let did = did. expect_local ( ) ;
488
- if let Some ( def) = ty:: WithOptConstParam :: try_fetch ( did, tcx) {
488
+ if let Some ( def) = ty:: WithOptConstParam :: try_lookup ( did, tcx) {
489
489
tcx. optimized_mir_of_const_arg ( def)
490
490
} else {
491
491
tcx. arena . alloc ( inner_optimized_mir ( tcx, ty:: WithOptConstParam :: unknown ( did) ) )
0 commit comments