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 b85d85f commit 77bf0b5Copy full SHA for 77bf0b5
src/intptrcast.rs
@@ -226,10 +226,7 @@ impl<'mir, 'tcx> GlobalStateInner {
226
// Add offset with the right kind of pointer-overflowing arithmetic.
227
let dl = ecx.data_layout();
228
let absolute_addr = dl.overflowing_offset(base_addr, offset.bytes()).0;
229
- Ok(Pointer::new(
230
- Provenance::Concrete { alloc_id, tag },
231
- Size::from_bytes(absolute_addr),
232
- ))
+ Ok(Pointer::new(Provenance::Concrete { alloc_id, tag }, Size::from_bytes(absolute_addr)))
233
}
234
235
/// When a pointer is used for a memory access, this computes where in which allocation the
0 commit comments