Skip to content

Commit ede41ab

Browse files
committedJun 30, 2019
Keep caching for non-promoted queries
1 parent 930ad86 commit ede41ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/librustc/query/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ rustc_queries! {
496496
query symbol_name(key: ty::Instance<'tcx>) -> ty::SymbolName {
497497
no_force
498498
desc { "computing the symbol for `{}`", key }
499+
cache_on_disk_if { true }
499500
}
500501

501502
query def_kind(_: DefId) -> Option<DefKind> {}
@@ -562,6 +563,7 @@ rustc_queries! {
562563
key: (ty::ParamEnv<'tcx>, ty::PolyTraitRef<'tcx>)
563564
) -> Vtable<'tcx, ()> {
564565
no_force
566+
cache_on_disk_if { true }
565567
desc { |tcx|
566568
"checking if `{}` fulfills its obligations",
567569
tcx.def_path_str(key.1.def_id())

0 commit comments

Comments
 (0)
Please sign in to comment.