We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f71a9cc commit bd162d7Copy full SHA for bd162d7
src/intptrcast.rs
@@ -48,6 +48,7 @@ impl<'mir, 'tcx> GlobalStateInner {
48
// or `None` if the addr is out of bounds
49
fn alloc_id_from_addr(ecx: &MiriEvalContext<'mir, 'tcx>, addr: u64) -> Option<AllocId> {
50
let global_state = ecx.machine.intptrcast.borrow();
51
+ assert!(global_state.provenance_mode != ProvenanceMode::Strict);
52
53
let pos = global_state.int_to_ptr_map.binary_search_by_key(&addr, |(addr, _)| *addr);
54
0 commit comments