@@ -34,7 +34,7 @@ pub trait QueryConfig<'tcx> {
3434 type Value : Clone ;
3535}
3636
37- pub ( super ) trait QueryAccessors < ' tcx > : QueryConfig < ' tcx > {
37+ pub ( crate ) trait QueryAccessors < ' tcx > : QueryConfig < ' tcx > {
3838 fn query ( key : Self :: Key ) -> Query < ' tcx > ;
3939
4040 // 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> {
5353 fn handle_cycle_error ( tcx : TyCtxt < ' _ , ' tcx , ' _ > , error : CycleError < ' tcx > ) -> Self :: Value ;
5454}
5555
56- pub ( super ) trait QueryDescription < ' tcx > : QueryAccessors < ' tcx > {
56+ pub ( crate ) trait QueryDescription < ' tcx > : QueryAccessors < ' tcx > {
5757 fn describe ( tcx : TyCtxt < ' _ , ' _ , ' _ > , key : Self :: Key ) -> Cow < ' static , str > ;
5858
5959 #[ inline]
@@ -587,12 +587,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::dylib_dependency_formats<'tcx> {
587587 }
588588}
589589
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-
596590impl < ' tcx > QueryDescription < ' tcx > for queries:: is_compiler_builtins < ' tcx > {
597591 fn describe ( _: TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
598592 "checking if the crate is_compiler_builtins" . into ( )
@@ -671,12 +665,6 @@ impl<'tcx> QueryDescription<'tcx> for queries::reachable_non_generics<'tcx> {
671665 }
672666}
673667
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-
680668impl < ' tcx > QueryDescription < ' tcx > for queries:: foreign_modules < ' tcx > {
681669 fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: CrateNum ) -> Cow < ' static , str > {
682670 "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>
949937 }
950938}
951939
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-
967940impl < ' tcx > QueryDescription < ' tcx > for queries:: program_clauses_for < ' tcx > {
968941 fn describe ( _tcx : TyCtxt < ' _ , ' _ , ' _ > , _: DefId ) -> Cow < ' static , str > {
969942 "generating chalk-style clauses" . into ( )
@@ -1027,7 +1000,6 @@ impl_disk_cacheable_query!(borrowck, |_, def_id| def_id.is_local());
10271000impl_disk_cacheable_query ! ( mir_const_qualif, |_, def_id| def_id. is_local( ) ) ;
10281001impl_disk_cacheable_query ! ( check_match, |_, def_id| def_id. is_local( ) ) ;
10291002impl_disk_cacheable_query ! ( def_symbol_name, |_, _| true ) ;
1030- impl_disk_cacheable_query ! ( type_of, |_, def_id| def_id. is_local( ) ) ;
10311003impl_disk_cacheable_query ! ( predicates_of, |_, def_id| def_id. is_local( ) ) ;
10321004impl_disk_cacheable_query ! ( used_trait_imports, |_, def_id| def_id. is_local( ) ) ;
10331005impl_disk_cacheable_query ! ( codegen_fn_attrs, |_, _| true ) ;
0 commit comments