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

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Oli Scherer 2020-11-02 12:52:52 +01:00 committed by oli
parent 98b70c9ac0
commit cb1cf6ae95

View file

@ -226,7 +226,7 @@ impl ScalarInt {
#[inline]
pub fn assert_bits(self, target_size: Size) -> u128 {
self.to_bits(target_size).unwrap_or_else(|size| {
bug!("int of size {}, but is {}", target_size.bytes(), size.bytes())
bug!("expected int of size {}, but got size {}", target_size.bytes(), size.bytes())
})
}