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 98b70c9 commit cb1cf6aCopy full SHA for cb1cf6a
compiler/rustc_middle/src/ty/consts/int.rs
@@ -226,7 +226,7 @@ impl ScalarInt {
226
#[inline]
227
pub fn assert_bits(self, target_size: Size) -> u128 {
228
self.to_bits(target_size).unwrap_or_else(|size| {
229
- bug!("int of size {}, but is {}", target_size.bytes(), size.bytes())
+ bug!("expected int of size {}, but got size {}", target_size.bytes(), size.bytes())
230
})
231
}
232
0 commit comments