Skip to content

Commit c7a48e8

Browse files
committed
Don't use incremental disk-cache for query predicates_of
This query is a relatively modest wrapper around a few underlying queries that are themselves cached to disk. Removing the additional layer of disk caching appears to be a significant perf win. This query also appears to be the only query that uses a crate-local `cache_on_disk_if` condition, without also using the `separate_provide_extern` modifier.
1 parent 80282b1 commit c7a48e8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_middle/src/queries.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ rustc_queries! {
455455
/// the result of this query for use in UI tests or for debugging purposes.
456456
query predicates_of(key: DefId) -> ty::GenericPredicates<'tcx> {
457457
desc { "computing predicates of `{}`", tcx.def_path_str(key) }
458-
cache_on_disk_if { key.is_local() }
459458
}
460459

461460
query opaque_types_defined_by(

0 commit comments

Comments
 (0)