@@ -617,13 +617,11 @@ rustc_queries! {
617
617
/// `is_const_fn` function. Consider using `is_const_fn` or `is_const_fn_raw` instead.
618
618
query constness( key: DefId ) -> hir:: Constness {
619
619
desc { |tcx| "checking if item is const: `{}`" , tcx. def_path_str( key) }
620
- cache_on_disk_if { key. is_local( ) }
621
620
separate_provide_extern
622
621
}
623
622
624
623
query asyncness( key: DefId ) -> hir:: IsAsync {
625
624
desc { |tcx| "checking if the function is async: `{}`" , tcx. def_path_str( key) }
626
- cache_on_disk_if { key. is_local( ) }
627
625
separate_provide_extern
628
626
}
629
627
@@ -641,14 +639,12 @@ rustc_queries! {
641
639
/// Returns `true` if this is a foreign item (i.e., linked via `extern { ... }`).
642
640
query is_foreign_item( key: DefId ) -> bool {
643
641
desc { |tcx| "checking if `{}` is a foreign item" , tcx. def_path_str( key) }
644
- cache_on_disk_if { key. is_local( ) }
645
642
separate_provide_extern
646
643
}
647
644
648
645
/// Returns `Some(generator_kind)` if the node pointed to by `def_id` is a generator.
649
646
query generator_kind( def_id: DefId ) -> Option <hir:: GeneratorKind > {
650
647
desc { |tcx| "looking up generator kind of `{}`" , tcx. def_path_str( def_id) }
651
- cache_on_disk_if { def_id. is_local( ) }
652
648
separate_provide_extern
653
649
}
654
650
@@ -747,7 +743,6 @@ rustc_queries! {
747
743
}
748
744
query impl_polarity( impl_id: DefId ) -> ty:: ImplPolarity {
749
745
desc { |tcx| "computing implementation polarity of `{}`" , tcx. def_path_str( impl_id) }
750
- cache_on_disk_if { impl_id. is_local( ) }
751
746
separate_provide_extern
752
747
}
753
748
@@ -879,7 +874,6 @@ rustc_queries! {
879
874
}
880
875
query diagnostic_only_typeck( key: LocalDefId ) -> & ' tcx ty:: TypeckResults <' tcx> {
881
876
desc { |tcx| "type-checking `{}`" , tcx. def_path_str( key) }
882
- cache_on_disk_if { true }
883
877
}
884
878
885
879
query used_trait_imports( key: LocalDefId ) -> & ' tcx UnordSet <LocalDefId > {
@@ -1144,20 +1138,17 @@ rustc_queries! {
1144
1138
1145
1139
query fn_arg_names( def_id: DefId ) -> & ' tcx [ rustc_span:: symbol:: Ident ] {
1146
1140
desc { |tcx| "looking up function parameter names for `{}`" , tcx. def_path_str( def_id) }
1147
- cache_on_disk_if { def_id. is_local( ) }
1148
1141
separate_provide_extern
1149
1142
}
1150
1143
/// Gets the rendered value of the specified constant or associated constant.
1151
1144
/// Used by rustdoc.
1152
1145
query rendered_const( def_id: DefId ) -> & ' tcx String {
1153
1146
arena_cache
1154
1147
desc { |tcx| "rendering constant initializer of `{}`" , tcx. def_path_str( def_id) }
1155
- cache_on_disk_if { def_id. is_local( ) }
1156
1148
separate_provide_extern
1157
1149
}
1158
1150
query impl_parent( def_id: DefId ) -> Option <DefId > {
1159
1151
desc { |tcx| "computing specialization parent impl of `{}`" , tcx. def_path_str( def_id) }
1160
- cache_on_disk_if { def_id. is_local( ) }
1161
1152
separate_provide_extern
1162
1153
}
1163
1154
@@ -1410,7 +1401,6 @@ rustc_queries! {
1410
1401
1411
1402
query impl_defaultness( def_id: DefId ) -> hir:: Defaultness {
1412
1403
desc { |tcx| "looking up whether `{}` is a default impl" , tcx. def_path_str( def_id) }
1413
- cache_on_disk_if { def_id. is_local( ) }
1414
1404
separate_provide_extern
1415
1405
feedable
1416
1406
}
0 commit comments