Skip to content

Commit

Permalink
EXPERIMENT: Cache check_mod_type_wf and check_well_formed to see …
Browse files Browse the repository at this point in the history
…if that resolves most of the performance regression
  • Loading branch information
oli-obk committed Oct 18, 2023
1 parent cdcdb4e commit 0da8104
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_middle/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ rustc_queries! {

query check_mod_type_wf(key: LocalModDefId) -> Result<(), ErrorGuaranteed> {
desc { |tcx| "checking that types are well-formed in {}", describe_as_module(key, tcx) }
cache_on_disk_if { true }
}

query collect_mod_item_types(key: LocalModDefId) -> () {
Expand Down Expand Up @@ -1511,6 +1512,7 @@ rustc_queries! {

query check_well_formed(key: hir::OwnerId) -> Result<(), ErrorGuaranteed> {
desc { |tcx| "checking that `{}` is well-formed", tcx.def_path_str(key) }
cache_on_disk_if { true }
}

// The `DefId`s of all non-generic functions and statics in the given crate
Expand Down

0 comments on commit 0da8104

Please sign in to comment.