Skip to content

chore(crypto): remove stale unused_assignments allow - #11472

Merged
nmattia merged 1 commit into
masterfrom
chore/remove-stale-unused-assignments-allow
Sep 7, 2026
Merged

nmattia merged 1 commit into
masterfrom
chore/remove-stale-unused-assignments-allow

Conversation

@claude

@claude claude Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Requested by Nicolas Mattia · Slack thread

Before

rs/crypto/internal/crypto_lib/threshold_sig/bls12_381/src/ni_dkg/groth20_bls12_381/types.rs carried a module-level #[allow(unused_assignments)] plus a TODO comment, added as a workaround for a rustc false-positive (rust-lang/rust#147648) when IC upgraded to rustc 1.92.0 in #8124 (Jan 2026).

After

The suppression and TODO are removed: the underlying compiler bug (rust-lang/rust#147648, now closed) was fixed upstream in rust-lang/rust#151556 and shipped in Rust 1.94.0/1.95.0. IC's pinned toolchain (rust-toolchain.toml) is now 1.97.1, well past the fix. cargo check --all-targets --all-features -p ic-crypto-internal-threshold-sig-bls12381 and a crate-scoped cargo clippy with the repo's lint flags confirm no unused_assignments diagnostics are emitted without the allow, so the suppression is stale.

🤖 Generated with Claude Code

https://claude.ai/code/session_016kWotpWN6DJC8SWj5qriBK

…147648 fixed upstream)

The #![allow(unused_assignments)] and its TODO were added as a workaround
for a rustc false-positive (rust-lang/rust#147648) when IC upgraded to
rustc 1.92.0. That bug was fixed upstream in rust-lang/rust#151556,
shipped in Rust 1.94.0/1.95.0, and IC's pinned toolchain is now 1.97.1.
cargo check confirms no unused_assignments diagnostics are emitted
without the suppression, so it is safe to remove.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016kWotpWN6DJC8SWj5qriBK

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The narrowly scoped cleanup removes a compiler workaround that is no longer needed and does not alter runtime behavior.

Pull request overview

Removes an obsolete Rust compiler-lint workaround from the Groth20 BLS12-381 NI-DKG types module.

Changes:

  • Removes the stale unused_assignments allowance.
  • Removes its associated TODO comment.
File summaries
File Description
rs/crypto/internal/crypto_lib/threshold_sig/bls12_381/src/ni_dkg/groth20_bls12_381/types.rs Removes the obsolete module-level lint suppression.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nmattia
nmattia marked this pull request as ready for review September 7, 2026 12:14
@nmattia
nmattia requested a review from a team as a code owner September 7, 2026 12:14
@nmattia
nmattia enabled auto-merge September 7, 2026 12:14
@nmattia
nmattia added this pull request to the merge queue Sep 7, 2026
Merged via the queue into master with commit f2910a8 Sep 7, 2026
48 of 49 checks passed
@nmattia
nmattia deleted the chore/remove-stale-unused-assignments-allow branch September 7, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants