We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29cc8ec commit 05489e7Copy full SHA for 05489e7
1 file changed
compiler/rustc_middle/src/mir/pretty.rs
@@ -851,6 +851,7 @@ fn write_allocation_bytes<'tcx, Tag: Provenance, Extra>(
851
}
852
if let Some(&tag) = alloc.relocations().get(&i) {
853
// Memory with a relocation must be defined
854
+ assert!(alloc.init_mask().is_range_initialized(i, i + ptr_size).is_ok());
855
let j = i.bytes_usize();
856
let offset = alloc
857
.inspect_with_uninit_and_ptr_outside_interpreter(j..j + ptr_size.bytes_usize());
0 commit comments