diff options
author | Ben Kimock <kimockb@gmail.com> | 2023-04-20 21:12:39 -0400 |
---|---|---|
committer | Ben Kimock <kimockb@gmail.com> | 2023-04-20 21:12:39 -0400 |
commit | 010deb5ba3158c60434535854632e5b190de6034 (patch) | |
tree | 8771e4322affe4450a2c9e39715c897176e183b4 /compiler/rustc_query_impl | |
parent | 8bdcc62cb0362869f0e7b43a6ae4f96b953d3cbc (diff) | |
download | rust-010deb5ba3158c60434535854632e5b190de6034.tar.gz |
Panic instead of truncating if the dep graph is too big
Diffstat (limited to 'compiler/rustc_query_impl')
-rw-r--r-- | compiler/rustc_query_impl/src/on_disk_cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/on_disk_cache.rs b/compiler/rustc_query_impl/src/on_disk_cache.rs index 40869fdc467..c05323c2d6c 100644 --- a/compiler/rustc_query_impl/src/on_disk_cache.rs +++ b/compiler/rustc_query_impl/src/on_disk_cache.rs @@ -300,7 +300,7 @@ impl<'sess> rustc_middle::ty::OnDiskCache<'sess> for OnDiskCache<'sess> { interpret_alloc_index.reserve(new_n - n); for idx in n..new_n { let id = encoder.interpret_allocs[idx]; - let pos = encoder.position() as u32; + let pos: u32 = encoder.position().try_into().unwrap(); interpret_alloc_index.push(pos); interpret::specialized_encode_alloc_id(&mut encoder, tcx, id); } |