@@ -50,7 +50,7 @@ pub(crate) fn provide(providers: &mut Providers) {
5050 mir_const,
5151 mir_const_qualif : |tcx, def_id| {
5252 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) {
5454 tcx. mir_const_qualif_const_arg ( def)
5555 } else {
5656 mir_const_qualif ( tcx, ty:: WithOptConstParam :: unknown ( def_id) )
@@ -66,7 +66,7 @@ pub(crate) fn provide(providers: &mut Providers) {
6666 is_mir_available,
6767 promoted_mir : |tcx, def_id| {
6868 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) {
7070 tcx. promoted_mir_of_const_arg ( def)
7171 } else {
7272 promoted_mir ( tcx, ty:: WithOptConstParam :: unknown ( def_id) )
@@ -485,7 +485,7 @@ fn run_optimization_passes<'tcx>(
485485
486486fn optimized_mir < ' tcx > ( tcx : TyCtxt < ' tcx > , did : DefId ) -> & ' tcx Body < ' tcx > {
487487 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) {
489489 tcx. optimized_mir_of_const_arg ( def)
490490 } else {
491491 tcx. arena . alloc ( inner_optimized_mir ( tcx, ty:: WithOptConstParam :: unknown ( did) ) )
0 commit comments