@@ -34,7 +34,7 @@ pub trait QueryConfig<'tcx> {
34
34
type Value : Clone ;
35
35
}
36
36
37
- pub ( super ) trait QueryAccessors < ' tcx > : QueryConfig < ' tcx > {
37
+ pub ( crate ) trait QueryAccessors < ' tcx > : QueryConfig < ' tcx > {
38
38
fn query ( key : Self :: Key ) -> Query < ' tcx > ;
39
39
40
40
// Don't use this method to access query results, instead use the methods on TyCtxt
@@ -53,7 +53,7 @@ pub(super) trait QueryAccessors<'tcx>: QueryConfig<'tcx> {
53
53
fn handle_cycle_error ( tcx : TyCtxt < ' _ , ' tcx , ' _ > , error : CycleError < ' tcx > ) -> Self :: Value ;
54
54
}
55
55
56
- pub ( super ) trait QueryDescription < ' tcx > : QueryAccessors < ' tcx > {
56
+ pub ( crate ) trait QueryDescription < ' tcx > : QueryAccessors < ' tcx > {
57
57
fn describe ( tcx : TyCtxt < ' _ , ' _ , ' _ > , key : Self :: Key ) -> Cow < ' static , str > ;
58
58
59
59
#[ inline]
@@ -587,12 +587,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::dylib_dependency_formats<'tcx> {
587
587
}
588
588
}
589
589
590
- impl < ' tcx > QueryDescription < ' tcx > for queries:: is_panic_runtime < ' tcx > {
591
- fn describe ( _: TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
592
- "checking if the crate is_panic_runtime" . into ( )
593
- }
594
- }
595
-
596
590
impl < ' tcx > QueryDescription < ' tcx > for queries:: is_compiler_builtins < ' tcx > {
597
591
fn describe ( _: TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
598
592
"checking if the crate is_compiler_builtins" . into ( )
@@ -671,12 +665,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::reachable_non_generics<'tcx> {
671
665
}
672
666
}
673
667
674
- impl < ' tcx > QueryDescription < ' tcx > for queries:: native_libraries < ' tcx > {
675
- fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
676
- "looking up the native libraries of a linked crate" . into ( )
677
- }
678
- }
679
-
680
668
impl < ' tcx > QueryDescription < ' tcx > for queries:: foreign_modules < ' tcx > {
681
669
fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
682
670
"looking up the foreign modules of a linked crate" . into ( )
@@ -949,21 +937,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::instance_def_size_estimate<'tcx>
949
937
}
950
938
}
951
939
952
- impl < ' tcx > QueryDescription < ' tcx > for queries:: generics_of < ' tcx > {
953
- #[ inline]
954
- fn cache_on_disk ( _: TyCtxt < ' _ , ' tcx , ' tcx > , def_id : Self :: Key ) -> bool {
955
- def_id. is_local ( )
956
- }
957
-
958
- fn try_load_from_disk < ' a > ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
959
- id : SerializedDepNodeIndex )
960
- -> Option < Self :: Value > {
961
- let generics: Option < ty:: Generics > = tcx. queries . on_disk_cache
962
- . try_load_query_result ( tcx, id) ;
963
- generics. map ( |x| tcx. alloc_generics ( x) )
964
- }
965
- }
966
-
967
940
impl < ' tcx > QueryDescription < ' tcx > for queries:: program_clauses_for < ' tcx > {
968
941
fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: DefId ) -> Cow < ' static , str > {
969
942
"generating chalk-style clauses" . into ( )
@@ -1027,7 +1000,6 @@ impl_disk_cacheable_query!(borrowck, |_, def_id| def_id.is_local());
1027
1000
impl_disk_cacheable_query ! ( mir_const_qualif, |_, def_id| def_id. is_local( ) ) ;
1028
1001
impl_disk_cacheable_query ! ( check_match, |_, def_id| def_id. is_local( ) ) ;
1029
1002
impl_disk_cacheable_query ! ( def_symbol_name, |_, _| true ) ;
1030
- impl_disk_cacheable_query ! ( type_of, |_, def_id| def_id. is_local( ) ) ;
1031
1003
impl_disk_cacheable_query ! ( predicates_of, |_, def_id| def_id. is_local( ) ) ;
1032
1004
impl_disk_cacheable_query ! ( used_trait_imports, |_, def_id| def_id. is_local( ) ) ;
1033
1005
impl_disk_cacheable_query ! ( codegen_fn_attrs, |_, _| true ) ;
0 commit comments