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
Match without ,
  • Loading branch information
ShaharNaveh committed Feb 6, 2026
commit 56e23eff60326e0f26999813ae77c9cbfde2646c
8 changes: 4 additions & 4 deletions crates/compiler-core/src/bytecode/oparg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ macro_rules! oparg_enum {
$vis:vis enum $name:ident {
$(
$(#[$variant_meta:meta])*
$variant:ident = $value:literal,
)*
$variant:ident = $value:literal
),* $(,)?
}
) => {
$(#[$enum_meta])*
Expand All @@ -160,8 +160,8 @@ macro_rules! impl_oparg_enum {
(
enum $name:ident {
$(
$variant:ident = $value:literal,
)*
$variant:ident = $value:literal
),* $(,)?
}
) => {
impl TryFrom<u8> for $name {
Expand Down