Visitar URL original
Bytecode oparg optimization by ShaharNaveh · Pull Request #7032 · RustPython/RustPython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add const assert
  • Loading branch information
ShaharNaveh committed Feb 6, 2026
commit 14f3030454bb1835c00c852b832fce1abd6468d6
2 changes: 2 additions & 0 deletions crates/compiler-core/src/bytecode/oparg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ macro_rules! impl_oparg_enum {
}

impl OpArgType for $name {}

const _: () = assert!(::core::mem::size_of::<$name>() == ::core::mem::size_of::<u8>());
};
}

Expand Down
Loading