Skip to content
Permalink
Browse files

Keep caching for non-promoted queries

  • Loading branch information...
Zoxc committed Jun 26, 2019
1 parent 930ad86 commit ede41ab4d6dbd56f62021c4951fea8f3278e5030
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/librustc/query/mod.rs
@@ -496,6 +496,7 @@ rustc_queries! {
query symbol_name(key: ty::Instance<'tcx>) -> ty::SymbolName {
no_force
desc { "computing the symbol for `{}`", key }
cache_on_disk_if { true }
}

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

0 comments on commit ede41ab

Please sign in to comment.
You can’t perform that action at this time.