Skip to content

Commit ff30243

Browse files
committed
Cache queries.
1 parent cdc8ada commit ff30243

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,7 @@ rustc_queries! {
12341234
"computing (transitive) callees of `{}` that may recurse",
12351235
tcx.def_path_str(key),
12361236
}
1237+
cache_on_disk_if { true }
12371238
}
12381239

12391240
/// Obtain all the calls into other local functions
@@ -1243,6 +1244,7 @@ rustc_queries! {
12431244
"computing all local function calls in `{}`",
12441245
tcx.def_path_str(key.def_id()),
12451246
}
1247+
cache_on_disk_if { key.def_id().is_local() }
12461248
}
12471249

12481250
/// Computes the tag (if any) for a given type and variant.

0 commit comments

Comments
 (0)