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
Add comment
  • Loading branch information
ShaharNaveh committed Mar 2, 2026
commit de0a702afb1be709821461c71439e62d0b49f547
2 changes: 1 addition & 1 deletion crates/codegen/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@
$c.emit_arg($arg_val, |x| $enum::$op { $arg: x })
};

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

Check warning on line 315 in crates/codegen/src/compile.rs

View workflow job for this annotation

GitHub Actions / Lint Rust & Python code

Misspelled word (inatruction) Suggestions: (instruction*)
};

// No-arg variant (e.g., Foo::C)
Expand Down Expand Up @@ -8082,7 +8082,7 @@

fn emit_load_const(&mut self, constant: ConstantData) {
let idx = self.arg_constant(constant);
self.emit_arg(idx, |consti| Instruction::LoadConst { consti })

Check warning on line 8085 in crates/codegen/src/compile.rs

View workflow job for this annotation

GitHub Actions / Lint Rust & Python code

Unknown word (consti)

Check warning on line 8085 in crates/codegen/src/compile.rs

View workflow job for this annotation

GitHub Actions / Lint Rust & Python code

Unknown word (consti)
}

fn emit_return_const(&mut self, constant: ConstantData) {
Expand Down
Loading