about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2022-11-25 16:35:27 -0300
committerSantiago Pastorino <spastorino@gmail.com>2022-11-29 12:01:58 -0300
commit537488efd6f0be7240b5e2d08cae4af5db7162ab (patch)
treeccd01f180e00fa75b4629ca81b1244b532a7f1fe /compiler/rustc_query_impl/src
parentc372b1470109547e37dcc29ffd4723ac9f66f15d (diff)
downloadrust-537488efd6f0be7240b5e2d08cae4af5db7162ab.tar.gz
rust-537488efd6f0be7240b5e2d08cae4af5db7162ab.zip
Make inferred_outlives_crate return Clause
Diffstat (limited to 'compiler/rustc_query_impl/src')
-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 c61d2a9c2d0..ac9653b9007 100644
--- a/compiler/rustc_query_impl/src/on_disk_cache.rs
+++ b/compiler/rustc_query_impl/src/on_disk_cache.rs
@@ -818,6 +818,12 @@ impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for &'tcx [(ty::Predicate<'tcx>
     }
 }
 
+impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for &'tcx [(ty::Clause<'tcx>, Span)] {
+    fn decode(d: &mut CacheDecoder<'a, 'tcx>) -> Self {
+        RefDecodable::decode(d)
+    }
+}
+
 impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for &'tcx [rustc_ast::InlineAsmTemplatePiece] {
     fn decode(d: &mut CacheDecoder<'a, 'tcx>) -> Self {
         RefDecodable::decode(d)