From 22159848c59f9e6ae0107671994b33465decf3be Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 3 Nov 2022 11:53:51 -0500 Subject: [PATCH] Fix instruction size test for Rust 1.65.0 (#5188) Looks like Rust generously shrank our `enum` in 1.65.0, so update the test assertion to pass CI. --- cranelift/codegen/src/isa/x64/inst/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cranelift/codegen/src/isa/x64/inst/mod.rs b/cranelift/codegen/src/isa/x64/inst/mod.rs index cdc9dfed4f..6a3eae120a 100644 --- a/cranelift/codegen/src/isa/x64/inst/mod.rs +++ b/cranelift/codegen/src/isa/x64/inst/mod.rs @@ -48,7 +48,7 @@ pub struct CallInfo { fn inst_size_test() { // This test will help with unintentionally growing the size // of the Inst enum. - assert_eq!(48, std::mem::size_of::()); + assert_eq!(40, std::mem::size_of::()); } pub(crate) fn low32_will_sign_extend_to_64(x: u64) -> bool {