mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
ensure bytecode::Instruction never grows more than 8bytes
This commit is contained in:
1 parent
1cb692547e
commit
291c037b8b
3 files changed
+3
No files matched your search
Generated
+1
@@ -1616,6 +1616,7 @@ dependencies = [
|
||||
"num-bigint",
|
||||
"num-complex",
|
||||
"serde",
|
||||
"static_assertions",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
@@ -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"
|
||||
@@ -401,6 +401,7 @@ pub enum Instruction {
|
||||
i: u32,
|
||||
},
|
||||
}
|
||||
static_assertions::assert_eq_size!(Instruction, u64);
|
||||
|
||||
use self::Instruction::*;
|
||||
|
||||
|
||||
Reference in new issue
Block a user