@@ -305,12 +305,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::super_predicates_of<'tcx> {
305305 }
306306}
307307
308- impl < ' tcx > QueryDescription < ' tcx > for queries:: erase_regions_ty < ' tcx > {
309- fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , ty : Ty < ' tcx > ) -> Cow < ' static , str > {
310- format ! ( "erasing regions from `{:?}`" , ty) . into ( )
311- }
312- }
313-
314308impl < ' tcx > QueryDescription < ' tcx > for queries:: type_param_predicates < ' tcx > {
315309 fn describe ( tcx : TyCtxt < ' _ , ' _ , ' _ > , ( _, def_id) : ( DefId , DefId ) ) -> Cow < ' static , str > {
316310 let id = tcx. hir ( ) . as_local_hir_id ( def_id) . unwrap ( ) ;
@@ -431,12 +425,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::const_eval_raw<'tcx> {
431425 }
432426}
433427
434- impl < ' tcx > QueryDescription < ' tcx > for queries:: mir_keys < ' tcx > {
435- fn describe ( _: TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
436- "getting a list of all mir_keys" . into ( )
437- }
438- }
439-
440428impl < ' tcx > QueryDescription < ' tcx > for queries:: symbol_name < ' tcx > {
441429 fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , instance : ty:: Instance < ' tcx > ) -> Cow < ' static , str > {
442430 format ! ( "computing the symbol for `{}`" , instance) . into ( )
@@ -617,12 +605,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::analysis<'tcx> {
617605 }
618606}
619607
620- impl < ' tcx > QueryDescription < ' tcx > for queries:: lint_levels < ' tcx > {
621- fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
622- "computing the lint levels for items in this crate" . into ( )
623- }
624- }
625-
626608impl < ' tcx > QueryDescription < ' tcx > for queries:: specializes < ' tcx > {
627609 fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: ( DefId , DefId ) ) -> Cow < ' static , str > {
628610 "computing whether impls specialize one another" . into ( )
@@ -898,21 +880,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::typeck_tables_of<'tcx> {
898880 }
899881}
900882
901- impl < ' tcx > QueryDescription < ' tcx > for queries:: optimized_mir < ' tcx > {
902- #[ inline]
903- fn cache_on_disk ( _: TyCtxt < ' _ , ' tcx , ' tcx > , def_id : Self :: Key ) -> bool {
904- def_id. is_local ( )
905- }
906-
907- fn try_load_from_disk < ' a > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
908- id : SerializedDepNodeIndex )
909- -> Option < Self :: Value > {
910- let mir: Option < crate :: mir:: Mir < ' tcx > > = tcx. queries . on_disk_cache
911- . try_load_query_result ( tcx, id) ;
912- mir. map ( |x| tcx. alloc_mir ( x) )
913- }
914- }
915-
916883impl < ' tcx > QueryDescription < ' tcx > for queries:: substitute_normalize_and_test_predicates < ' tcx > {
917884 fn describe ( tcx : TyCtxt < ' _ , ' _ , ' _ > , key : ( DefId , SubstsRef < ' tcx > ) ) -> Cow < ' static , str > {
918885 format ! ( "testing substituted normalized predicates:`{}`" , tcx. def_path_str( key. 0 ) ) . into ( )
@@ -937,33 +904,9 @@ impl<'tcx> QueryDescription<'tcx> for queries::instance_def_size_estimate<'tcx>
937904 }
938905}
939906
940- impl < ' tcx > QueryDescription < ' tcx > for queries:: program_clauses_for < ' tcx > {
941- fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: DefId ) -> Cow < ' static , str > {
942- "generating chalk-style clauses" . into ( )
943- }
944- }
945-
946- impl < ' tcx > QueryDescription < ' tcx > for queries:: program_clauses_for_env < ' tcx > {
947- fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: traits:: Environment < ' tcx > ) -> Cow < ' static , str > {
948- "generating chalk-style clauses for environment" . into ( )
949- }
950- }
951-
952- impl < ' tcx > QueryDescription < ' tcx > for queries:: environment < ' tcx > {
953- fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: DefId ) -> Cow < ' static , str > {
954- "return a chalk-style environment" . into ( )
955- }
956- }
957-
958- impl < ' tcx > QueryDescription < ' tcx > for queries:: wasm_import_module_map < ' tcx > {
959- fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
960- "wasm import module map" . into ( )
961- }
962- }
963-
964907impl < ' tcx > QueryDescription < ' tcx > for queries:: dllimport_foreign_items < ' tcx > {
965908 fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
966- "wasm import module map " . into ( )
909+ "dllimport_foreign_items " . into ( )
967910 }
968911}
969912
@@ -997,7 +940,6 @@ impl_disk_cacheable_query!(mir_borrowck, |tcx, def_id| {
997940
998941impl_disk_cacheable_query ! ( unsafety_check_result, |_, def_id| def_id. is_local( ) ) ;
999942impl_disk_cacheable_query ! ( borrowck, |_, def_id| def_id. is_local( ) ) ;
1000- impl_disk_cacheable_query ! ( mir_const_qualif, |_, def_id| def_id. is_local( ) ) ;
1001943impl_disk_cacheable_query ! ( check_match, |_, def_id| def_id. is_local( ) ) ;
1002944impl_disk_cacheable_query ! ( def_symbol_name, |_, _| true ) ;
1003945impl_disk_cacheable_query ! ( predicates_of, |_, def_id| def_id. is_local( ) ) ;
0 commit comments