We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bdcc62 commit 010deb5Copy full SHA for 010deb5
compiler/rustc_query_impl/src/on_disk_cache.rs
@@ -300,7 +300,7 @@ impl<'sess> rustc_middle::ty::OnDiskCache<'sess> for OnDiskCache<'sess> {
300
interpret_alloc_index.reserve(new_n - n);
301
for idx in n..new_n {
302
let id = encoder.interpret_allocs[idx];
303
- let pos = encoder.position() as u32;
+ let pos: u32 = encoder.position().try_into().unwrap();
304
interpret_alloc_index.push(pos);
305
interpret::specialized_encode_alloc_id(&mut encoder, tcx, id);
306
}
0 commit comments