Skip to content

Commit 1c40fb0

Browse files
committed
report the bad integer size instead of just the fact that it is bad
1 parent b2d476e commit 1c40fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ impl<'a, 'tcx> Memory<'a, 'tcx> {
570570
2 => Ok(self.layout.i16_align.abi() as usize),
571571
4 => Ok(self.layout.i32_align.abi() as usize),
572572
8 => Ok(self.layout.i64_align.abi() as usize),
573-
_ => bug!("bad integer size"),
573+
_ => bug!("bad integer size: {}", size),
574574
}
575575
}
576576

0 commit comments

Comments
 (0)