Skip to content

chore: remove a bunch of dummy definitions#10482

Merged
TomAFrench merged 7 commits intomasterfrom
ab/remove-crate-dummy
Nov 12, 2025
Merged

chore: remove a bunch of dummy definitions#10482
TomAFrench merged 7 commits intomasterfrom
ab/remove-crate-dummy

Conversation

@asterite
Copy link
Collaborator

@asterite asterite commented Nov 11, 2025

Description

Problem

No issue.

Summary

I noticed CrateId::Dummy wasn't used in a lot of places so I decided to remove it. It then led to more refactors:

  • there was TypeId::dummy() which was used for reporting a type mismatch where we expect a struct and not another type. The way this error message was formed was using an actual type which meant we needed a dummy ID. I changed this so the expected type is a string, so we can say "expected: struct" instead, which might actually read better (though in practice these error will never trigger unless we have a bug in the compiler)
  • this then led to not needing a NodeInterner to create type variables for these types, which led to a lot of unused interner arguments

Additional Context

The remaining dummy is DefinitionId::dummy_id but that's much harder to remove so I'll leave it for a follow-up PR, or maybe not do it.

User Documentation

Check one:

  • No user documentation needed.
  • Changes in docs/ included in this PR.
  • [For Experimental Features] Changes in docs/ to be submitted in a separate PR.

PR Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Test Suite Duration'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: e7afcdb Previous: 62a4432 Ratio
test_report_AztecProtocol_aztec-packages_noir-projects_noir-protocol-circuits_crates_blob 498 s 371 s 1.34
test_report_zkpassport_noir_rsa_ 1 s 0 s +∞

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Execution Time'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: e7afcdb Previous: 62a4432 Ratio
rollup-checkpoint-merge 0.004 s 0.003 s 1.33
sha512-100-bytes 0.059 s 0.049 s 1.20

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

@TomAFrench TomAFrench enabled auto-merge November 12, 2025 13:48
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'ACVM Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: e7afcdb Previous: 62a4432 Ratio
perfectly_parallel_batch_inversion_opcodes 2782967 ns/iter (± 3279) 2264195 ns/iter (± 1976) 1.23

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

@TomAFrench TomAFrench added this pull request to the merge queue Nov 12, 2025
Merged via the queue into master with commit 0c6acb7 Nov 12, 2025
134 checks passed
@TomAFrench TomAFrench deleted the ab/remove-crate-dummy branch November 12, 2025 14:29
github-merge-queue bot pushed a commit to AztecProtocol/aztec-packages that referenced this pull request Nov 13, 2025
Automated pull of nightly from the
[noir](https://github.com/noir-lang/noir) programming language, a
dependency of Aztec.
BEGIN_COMMIT_OVERRIDE
chore: remove `local_annotations` from flattening
(noir-lang/noir#10483)
chore: better error recovery for multiple mut in pattern
(noir-lang/noir#10490)
chore(frontend): Tuple pattern tests and remove confusing arity error
(noir-lang/noir#10480)
chore: monomorphizer public fields
(noir-lang/noir#9979)
chore: remove a bunch of dummy definitions
(noir-lang/noir#10482)
feat(ssa): Limit the number of steps executed by the SSA interpreter
during constant folding (noir-lang/noir#10481)
fix: remove saturation from loop bound increments
(noir-lang/noir#10479)
fix(print): Print enums (noir-lang/noir#10472)
fix(frontend): No negative overflow when quoting signed integer
(noir-lang/noir#10331)
chore: green light Brillig for audit
(noir-lang/noir#10376)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants