Skip to content

fix: restore green Rust quality baseline (fmt, clippy, rustdoc, backend tests, lit) - #461

Merged
arniber21 merged 1 commit into
mainfrom
fix/rust-quality-baseline
Aug 5, 2026
Merged

fix: restore green Rust quality baseline (fmt, clippy, rustdoc, backend tests, lit)#461
arniber21 merged 1 commit into
mainfrom
fix/rust-quality-baseline

Conversation

@arniber21

Copy link
Copy Markdown
Owner

Restores the four quality gates that regressed after the #389#415 fix
batch (#455#460) landed without a green just test-ci:

  • fmt: cargo fmt --all on ~30 drifted files
  • clippy: fix needless_borrow in quon_core/depth.rs,
    manual_div_ceil in mlir_bridge/phase_polynomial.rs,
    needless_question_mark in frontend/lower.rs (x2),
    needless_borrows_for_generic_args in quon_na/tests,
    remove dead is_captured in mlir_bridge/ffi.rs
  • rustdoc: remove intra-doc links to private items in
    mlir_bridge/ffi.rs (PassContext, with_context) and
    mlir_bridge/diagnostics.rs (crate::ffi::emit_error)
  • backend tests: all_to_all_1000_qubits_constructs_quickly
    accessed the now-private dist field (sealed by Seal backend target and connectivity invariants #394); switched to
    the public num_qubits()/dist() accessors
  • lit: register missing %clifford-t-opt substitution in
    test/lit/lit.cfg.py — the two Clifford+T lit tests referenced it
    but the config never defined it

All gates verified green:
cargo fmt --all -- --check ✅
cargo clippy --workspace --exclude flux_verify --all-targets -- -D warnings ✅
RUSTDOCFLAGS='-D warnings' cargo doc --workspace --exclude flux_verify --no-deps ✅
cargo nextest run --workspace --exclude flux_verify → 5106 passed, 0 failed
npx @taskless/cli@latest check → No issues found

Also adds the re-review report at
docs/reviews/idiomatic-rust-re-review-2026-08-04.md.

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
quon Ready Ready Preview Aug 5, 2026 12:59am

@arniber21
arniber21 marked this pull request as ready for review August 5, 2026 00:10

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

…nd tests, lit)

Restores the four quality gates that regressed after the #389#415 fix
batch (#455#460) landed without a green `just test-ci`:

- **fmt**: `cargo fmt --all` on ~30 drifted files
- **clippy**: fix `needless_borrow` in `quon_core/depth.rs`,
  `manual_div_ceil` in `mlir_bridge/phase_polynomial.rs`,
  `needless_question_mark` in `frontend/lower.rs` (x2),
  `needless_borrows_for_generic_args` in `quon_na/tests`,
  remove dead `is_captured` in `mlir_bridge/ffi.rs`
- **rustdoc**: remove intra-doc links to private items in
  `mlir_bridge/ffi.rs` (`PassContext`, `with_context`) and
  `mlir_bridge/diagnostics.rs` (`crate::ffi::emit_error`)
- **backend tests**: `all_to_all_1000_qubits_constructs_quickly`
  accessed the now-private `dist` field (sealed by #394); switched to
  the public `num_qubits()`/`dist()` accessors
- **lit**: register missing `%clifford-t-opt` substitution in
  `test/lit/lit.cfg.py` — the two Clifford+T lit tests referenced it
  but the config never defined it

All gates verified green:
  cargo fmt --all -- --check            ✅
  cargo clippy --workspace --exclude flux_verify --all-targets -- -D warnings  ✅
  RUSTDOCFLAGS='-D warnings' cargo doc --workspace --exclude flux_verify --no-deps  ✅
  cargo nextest run --workspace --exclude flux_verify  →  5106 passed, 0 failed
  npx @taskless/cli@latest check  →  No issues found

Also adds the re-review report at
`docs/reviews/idiomatic-rust-re-review-2026-08-04.md`.
@arniber21
arniber21 force-pushed the fix/rust-quality-baseline branch from 922814e to 6a94d8c Compare August 5, 2026 00:59
@arniber21
arniber21 merged commit 39b268f into main Aug 5, 2026
27 checks passed
@arniber21
arniber21 deleted the fix/rust-quality-baseline branch August 5, 2026 05:38
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.

1 participant