Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ libfuzzer-sys = "0.4"
num-bigint = "0.4"
num-traits = "0.2"
num-integer = "0.1"
regex = "1.11"
similar = "2.7.0"
similar-asserts = "1.5.0"
tempfile = "3.6.0"
test-case = "3.3.1"
Expand Down
10 changes: 9 additions & 1 deletion compiler/noirc_evaluator/src/ssa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ impl<'a> SsaPass<'a> {
{
Self { msg, run: Box::new(f) }
}

pub fn msg(&self) -> &str {
self.msg
}

pub fn run(&self, ssa: Ssa) -> Result<Ssa, RuntimeError> {
(self.run)(ssa)
}
}

pub struct ArtifactsAndWarnings(pub Artifacts, pub Vec<SsaReport>);
Expand Down Expand Up @@ -674,7 +682,7 @@ impl SsaBuilder {
/// Run a list of SSA passes.
fn run_passes(mut self, passes: &[SsaPass]) -> Result<Self, RuntimeError> {
for pass in passes {
self = self.try_run_pass(|ssa| (pass.run)(ssa), pass.msg)?;
self = self.try_run_pass(|ssa| pass.run(ssa), pass.msg)?;
}
Ok(self)
}
Expand Down
4 changes: 4 additions & 0 deletions tooling/nargo_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ criterion.workspace = true
pprof.workspace = true
paste = "1.0.14"
proptest.workspace = true
regex.workspace = true
similar.workspace = true
sha2.workspace = true
sha3.workspace = true
iai = "0.1.1"
Expand All @@ -107,6 +109,8 @@ lazy_static.workspace = true
light-poseidon = "0.3.0"
insta = { workspace = true, features = ["json", "redactions"] }

noirc_evaluator.workspace = true

[[bench]]
name = "criterion"
harness = false
Expand Down
Loading
Loading