Ensure that Driver
always runs against a consistent language
#880
Labels
enhancement
New feature or request
Driver
always runs against a consistent language
#880
Problem
When creating a
Driver
struct we must pass in anacvm::Language
for theNodeInterner
to use.noir/crates/noirc_driver/src/lib.rs
Lines 28 to 32 in f304afc
When we call
driver.into_compiled_program
we pass in aacvm::Language
again.noir/crates/noirc_driver/src/lib.rs
Lines 147 to 155 in f304afc
This seems like it's opening up potential for inconsistent languages to be used which would cause unknown weirdness.
Solution
We should add a private field to
Driver
to track this language from construction time and stop allowing the language to be passed in to the methods.Alternatives considered
Additional context
The text was updated successfully, but these errors were encountered: