]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_query_impl/src/on_disk_cache.rs
Auto merge of #102064 - cjgillot:revert, r=Mark-Simulacrum
[rust.git] / compiler / rustc_query_impl / src / on_disk_cache.rs
index 5ef95911f562d851a91bf09e623c7de6cf84b6b7..0e93f3ce1d646d7510eabef8aa7e3f42cf2e0d87 100644 (file)
@@ -798,6 +798,12 @@ fn decode(d: &mut CacheDecoder<'a, 'tcx>) -> Self {
     }
 }
 
+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>>
 {