Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
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
Make sure no instruction is emitted using Foo(val)
  • Loading branch information
ShaharNaveh committed Mar 2, 2026
commit 64a3ef8300a2ccce7daa84b168028386174ecbb6
2 changes: 1 addition & 1 deletion crates/codegen/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ macro_rules! emit {

// Tuple variant (e.g., Foo::B(42))
($c:expr, $enum:ident :: $op:ident($arg_val:expr $(,)? ) $(,)?) => {
$c.emit_arg($arg_val, $enum::$op)
panic!("No inatruction should be defined as `Instruction::Foo(value)` use `Instruction::Foo { x: value }` instead")
};

// No-arg variant (e.g., Foo::C)
Expand Down
Loading