Skip to content

Commit cb1cf6a

Browse files
oli-obkRalfJung
andcommitted
Update compiler/rustc_middle/src/ty/consts/int.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent 98b70c9 commit cb1cf6a

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_middle/src/ty/consts

1 file changed

+1
-1
lines changed

compiler/rustc_middle/src/ty/consts/int.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl ScalarInt {
226226
#[inline]
227227
pub fn assert_bits(self, target_size: Size) -> u128 {
228228
self.to_bits(target_size).unwrap_or_else(|size| {
229-
bug!("int of size {}, but is {}", target_size.bytes(), size.bytes())
229+
bug!("expected int of size {}, but got size {}", target_size.bytes(), size.bytes())
230230
})
231231
}
232232

0 commit comments

Comments
 (0)