Skip to content

Commit

Permalink
fix compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed May 22, 2023
1 parent 56a237d commit 6a2330c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/noirc_evaluator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod ssa_refactor;
use acvm::{
acir::circuit::{opcodes::Opcode as AcirOpcode, Circuit, PublicInputs},
acir::native_types::{Expression, Witness},
compiler::{optimizers::simplify::CircuitSimplifier, transformers::IsOpcodeSupported},
compiler::optimizers::simplify::CircuitSimplifier,
Language,
};
use errors::{RuntimeError, RuntimeErrorKind};
Expand Down Expand Up @@ -66,7 +66,7 @@ pub struct Evaluator {
pub fn create_circuit(
program: Program,
np_language: Language,
is_opcode_supported: IsOpcodeSupported,
is_opcode_supported: fn(&AcirOpcode) -> bool,
enable_logging: bool,
show_output: bool,
) -> Result<(Circuit, Abi), RuntimeError> {
Expand Down
7 changes: 5 additions & 2 deletions crates/noirc_evaluator/src/ssa_refactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
#![allow(dead_code)]

use crate::errors::RuntimeError;
use acvm::{acir::circuit::Circuit, compiler::transformers::IsOpcodeSupported, Language};
use acvm::{
acir::circuit::{Circuit, Opcode},
Language,
};
use noirc_abi::Abi;

use noirc_frontend::monomorphization::ast::Program;
Expand All @@ -33,7 +36,7 @@ pub fn optimize_into_acir(program: Program) -> Acir {
pub fn experimental_create_circuit(
_program: Program,
_np_language: Language,
_is_opcode_supported: IsOpcodeSupported,
_is_opcode_supported: fn(&Opcode) -> bool,
_enable_logging: bool,
_show_output: bool,
) -> Result<(Circuit, Abi), RuntimeError> {
Expand Down

0 comments on commit 6a2330c

Please sign in to comment.