diff --git a/Cargo.lock b/Cargo.lock index 90a978c51..c152e806b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1579,6 +1579,7 @@ dependencies = [ "num-bigint", "num-complex", "serde", + "static_assertions", ] [[package]] diff --git a/bytecode/Cargo.toml b/bytecode/Cargo.toml index db83f9010..1457072b8 100644 --- a/bytecode/Cargo.toml +++ b/bytecode/Cargo.toml @@ -17,3 +17,4 @@ num-complex = { version = "0.4.0", features = ["serde"] } serde = { version = "1.0.136", features = ["derive"] } itertools = "0.10.3" bstr = "0.2.17" +static_assertions = "1.1.0" diff --git a/bytecode/src/lib.rs b/bytecode/src/lib.rs index 416475d7a..36d66f61a 100644 --- a/bytecode/src/lib.rs +++ b/bytecode/src/lib.rs @@ -394,6 +394,7 @@ pub enum Instruction { GetANext, EndAsyncFor, } +static_assertions::assert_eq_size!(Instruction, u64); use self::Instruction::*;