about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_middle/src/ty/consts/int.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/consts/int.rs b/compiler/rustc_middle/src/ty/consts/int.rs
index fd5f9d6ff1c..8308cfddb43 100644
--- a/compiler/rustc_middle/src/ty/consts/int.rs
+++ b/compiler/rustc_middle/src/ty/consts/int.rs
@@ -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())
         })
     }