From cb1cf6ae959f9b494a3d109dd84ebb49650da010 Mon Sep 17 00:00:00 2001 From: Oli Scherer Date: Mon, 2 Nov 2020 12:52:52 +0100 Subject: [PATCH] Update compiler/rustc_middle/src/ty/consts/int.rs Co-authored-by: Ralf Jung --- compiler/rustc_middle/src/ty/consts/int.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }) }