about summary refs log tree commit diff
path: root/compiler/rustc_query_impl
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-09-09 15:34:11 +0000
committerMichael Goulet <michael@errs.io>2022-09-14 20:50:52 +0000
commit4cdf264e6fe58325dcedb2f571cbac4aed095eb7 (patch)
tree330e8d282ae864b048fae9585f73af47a4121ea2 /compiler/rustc_query_impl
parent88a192257ce110e7fb1732aa2b65e481f811db7a (diff)
downloadrust-4cdf264e6fe58325dcedb2f571cbac4aed095eb7.tar.gz
rust-4cdf264e6fe58325dcedb2f571cbac4aed095eb7.zip
cache collect_trait_impl_trait_tys
Diffstat (limited to 'compiler/rustc_query_impl')
-rw-r--r--compiler/rustc_query_impl/src/on_disk_cache.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_query_impl/src/on_disk_cache.rs b/compiler/rustc_query_impl/src/on_disk_cache.rs
index 5ef95911f56..0e93f3ce1d6 100644
--- a/compiler/rustc_query_impl/src/on_disk_cache.rs
+++ b/compiler/rustc_query_impl/src/on_disk_cache.rs
@@ -798,6 +798,12 @@ impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for &'tcx FxHashSet<LocalDefId>
     }
 }
 
+impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for &'tcx FxHashMap<DefId, Ty<'tcx>> {
+    fn decode(d: &mut CacheDecoder<'a, 'tcx>) -> Self {
+        RefDecodable::decode(d)
+    }
+}
+
 impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>>
     for &'tcx IndexVec<mir::Promoted, mir::Body<'tcx>>
 {