Skip to content

Commit b01c480

Browse files
committed
fmt
1 parent d5d8a51 commit b01c480

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tools/miri/src/intptrcast.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,7 @@ impl<'mir, 'tcx> GlobalStateInner {
226226
// Add offset with the right kind of pointer-overflowing arithmetic.
227227
let dl = ecx.data_layout();
228228
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-
))
229+
Ok(Pointer::new(Provenance::Concrete { alloc_id, tag }, Size::from_bytes(absolute_addr)))
233230
}
234231

235232
/// When a pointer is used for a memory access, this computes where in which allocation the

0 commit comments

Comments
 (0)