@@ -305,12 +305,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::super_predicates_of<'tcx> {
305
305
}
306
306
}
307
307
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
-
314
308
impl < ' tcx > QueryDescription < ' tcx > for queries:: type_param_predicates < ' tcx > {
315
309
fn describe ( tcx : TyCtxt < ' _ , ' _ , ' _ > , ( _, def_id) : ( DefId , DefId ) ) -> Cow < ' static , str > {
316
310
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> {
431
425
}
432
426
}
433
427
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
-
440
428
impl < ' tcx > QueryDescription < ' tcx > for queries:: symbol_name < ' tcx > {
441
429
fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , instance : ty:: Instance < ' tcx > ) -> Cow < ' static , str > {
442
430
format ! ( "computing the symbol for `{}`" , instance) . into ( )
@@ -617,12 +605,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::analysis<'tcx> {
617
605
}
618
606
}
619
607
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
-
626
608
impl < ' tcx > QueryDescription < ' tcx > for queries:: specializes < ' tcx > {
627
609
fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: ( DefId , DefId ) ) -> Cow < ' static , str > {
628
610
"computing whether impls specialize one another" . into ( )
@@ -898,21 +880,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::typeck_tables_of<'tcx> {
898
880
}
899
881
}
900
882
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
-
916
883
impl < ' tcx > QueryDescription < ' tcx > for queries:: substitute_normalize_and_test_predicates < ' tcx > {
917
884
fn describe ( tcx : TyCtxt < ' _ , ' _ , ' _ > , key : ( DefId , SubstsRef < ' tcx > ) ) -> Cow < ' static , str > {
918
885
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>
937
904
}
938
905
}
939
906
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
-
964
907
impl < ' tcx > QueryDescription < ' tcx > for queries:: dllimport_foreign_items < ' tcx > {
965
908
fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
966
- "wasm import module map " . into ( )
909
+ "dllimport_foreign_items " . into ( )
967
910
}
968
911
}
969
912
@@ -997,7 +940,6 @@ impl_disk_cacheable_query!(mir_borrowck, |tcx, def_id| {
997
940
998
941
impl_disk_cacheable_query ! ( unsafety_check_result, |_, def_id| def_id. is_local( ) ) ;
999
942
impl_disk_cacheable_query ! ( borrowck, |_, def_id| def_id. is_local( ) ) ;
1000
- impl_disk_cacheable_query ! ( mir_const_qualif, |_, def_id| def_id. is_local( ) ) ;
1001
943
impl_disk_cacheable_query ! ( check_match, |_, def_id| def_id. is_local( ) ) ;
1002
944
impl_disk_cacheable_query ! ( def_symbol_name, |_, _| true ) ;
1003
945
impl_disk_cacheable_query ! ( predicates_of, |_, def_id| def_id. is_local( ) ) ;
0 commit comments