Skip to content

Commit 1aa200f

Browse files
committed
Auto merge of #153521 - Zalathar:predicates-of, r=nnethercote
Don't use incremental disk-cache for query `predicates_of` The `predicates_of` 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. - Discovered via #153487 (comment)
2 parents 085c58f + c7a48e8 commit 1aa200f

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)