Skip to content

Bump Rust toolchain to 1.98.1 - #299

Merged
AdaWorldAPI merged 2 commits into
mainfrom
claude/rust-1981-bump
Sep 5, 2026
Merged

Bump Rust toolchain to 1.98.1#299
AdaWorldAPI merged 2 commits into
mainfrom
claude/rust-1981-bump

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Sep 5, 2026

Copy link
Copy Markdown
Owner

What

rust-toolchain.toml channel 1.97.11.98.1, plus the one genuine CI pin (.github/workflows/ci.yml toolchain:). Part of the workspace-wide sweep to current stable (1.98.0 released 2026-08-20, 1.98.1 on 2026-09-01).

Findings, correctly classified

An earlier version of this description called all three findings "1.98 findings". That was wrong and is corrected here. Checked against the clippy changelog:

finding site actually new in 1.98?
clippy::chunks_exact_to_as_chunks crates/ogar-a2ui-frame/src/lib.rs:248 Yes — new, default-on style group
clippy::doc_overindented_list_items crates/ogar-r2il/examples/probe_counterfactual_witness_kernel.rs:48 No — added in Rust 1.86
clippy::assertions_on_constants crates/ogar-dismech/src/lib.rs:835/840 No — not in the 1.98 list

The more interesting finding: OGAR has no clippy gate

The two misattributed lints did not appear because the toolchain moved. They appeared because .github/workflows/ci.yml runs only check and test — there is no clippy or fmt job in this repo at all, so -D warnings had effectively never run here. Every sibling repo in the sweep gates clippy in CI; OGAR is the exception, and that is why it carries a lint backlog spanning several releases.

That is worth its own decision (add a clippy job, then burn down whatever it surfaces) and is deliberately not bundled into a toolchain bump.

Also reported, not fixed

cargo clippy -p ogar-adapter-surrealql --features surrealdb-parser surfaces 2 pre-existing clippy::bool_comparison findings (src/lib.rs:1053, :1130). CI's test step exercises that feature but no clippy job checks it. Left out of scope.

Verification

All bare cargo on the new pin (proving rust-toolchain.toml resolves without +toolchain), all with CARGO_PROFILE_DEV_DEBUG=0 CARGO_INCREMENTAL=0:

  • cargo check --workspace --all-targets → exit 0
  • cargo test --workspace → exit 0, 847 passed, 0 failed across 84 groups
  • the five feature-gated CI test steps → all exit 0
  • cargo clippy --workspace --all-targets -- -D warnings → exit 0 after the fixes (not a CI step here; run because that is where the lint delta lives)
  • cargo fmt --check → exit 0

Cargo.toml's rust-version = "1.95" left unchanged: this repo's history shows the channel already diverged from it with no stated rule tying them together.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AGVLyRZNEKKBSfBDJfbY3V

Summary by CodeRabbit

  • Bug Fixes

    • Improved internal handling of node update masks for more reliable processing.
  • Documentation

    • Clarified diagnostic documentation to better describe locality behavior, including when it activates and when it remains inactive.
  • Chores

    • Updated the Rust toolchain to version 1.98.1.
    • No user-facing workflow changes were made.

Updates rust-toolchain.toml and the CI workflow's pinned toolchain
from 1.97.1 to 1.98.1, and fixes the three clippy findings the bump
surfaces under `-D warnings`:

- ogar-a2ui-frame: chunks_exact(8).map(u64::from_le_bytes([..])) is
  now clippy::chunks_exact_to_as_chunks; rewritten to
  as_chunks::<8>().0.iter().map(u64::from_le_bytes).
- ogar-r2il example: a doc-comment list continuation line was
  over-indented (4 spaces instead of 2), newly caught by
  clippy::doc_overindented_list_items.
- ogar-dismech: a deliberately-runtime named test asserting bounds on
  a `pub const` now trips clippy::assertions_on_constants; allowed
  explicitly with a comment, since the intent is a documented
  cargo-test invariant, not a compile-time const assertion.

rust-version in the workspace Cargo.toml is left at 1.95 — it already
diverges from the toolchain channel in this repo's history (channel
was 1.97.1) and no rule ties the two together.

Verified with bare `cargo` (no +toolchain): `cargo check --workspace
--all-targets`, `cargo test --workspace` (847 passed, 0 failed), the
five feature-gated CI test steps, `cargo clippy --workspace
--all-targets -- -D warnings` (clean), and `cargo fmt --check`
(clean).

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

cursor Bot commented Sep 5, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_90b20073-1155-43be-a79d-2082652f6758)

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: 46369209-f87d-4950-b717-6cb437c27c7f

📥 Commits

Reviewing files that changed from the base of the PR and between 954fc52 and 7c5b52f.

📒 Files selected for processing (4)
  • .github/workflows/ci.yml
  • crates/ogar-a2ui-frame/src/lib.rs
  • crates/ogar-r2il/examples/probe_counterfactual_witness_kernel.rs
  • rust-toolchain.toml

Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.


📝 Walkthrough

Walkthrough

The PR updates the Rust toolchain to 1.98.1, changes NodeDelta mask decoding to use fixed-size chunks, and clarifies a locality comment.

Changes

Rust maintenance

Layer / File(s) Summary
Rust toolchain alignment
.github/workflows/ci.yml, rust-toolchain.toml
CI and local toolchain configuration now use Rust 1.98.1.
Mask decoding and locality documentation
crates/ogar-a2ui-frame/src/lib.rs, crates/ogar-r2il/examples/probe_counterfactual_witness_kernel.rs
NodeDelta decodes complete 8-byte chunks as little-endian u64 values. The G1 comment uses updated locality wording.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 7c5b5

The repository and CI toolchains now use Rust 1.98.1, while frame mask decoding retains little-endian u64 behavior with fixed-size byte chunks. No current merge-blocking production or user-impact risk is identified.

Suggested reviewers: claude

Poem

A rabbit reads each line,
The patch grows clear beneath the moon,
Small changes hop in place,
Tests guard the garden path,
Reviews bloom before the dawn.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: updating the Rust toolchain to version 1.98.1.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (2 skipped: 2 …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Comment @coderabbitai help to get the list of available commands.

clippy::assertions_on_constants is NOT new in 1.98 — checked against the
clippy changelog, it is not in the 1.98 list at all, and the neighbouring
doc_overindented_list_items dates to 1.86. Both surfaced here only because
OGAR has no clippy job in CI (ci.yml runs check + test only), so -D warnings
had effectively never run in this repo.

So this allow was silencing a pre-existing lint inside a toolchain-bump PR,
which hides a real signal rather than fixing it, and does so for a lint
nothing in this repo currently checks. The backlog belongs to whatever PR
adds the clippy gate, where the whole policy gets decided at once.

The one-character doc-comment dedent is kept: it FIXES its lint rather than
masking it, and reverting a correct whitespace change would be churn.

Verified after the revert: cargo test -p ogar-dismech --lib exit 0, 20 passed
0 failed; cargo fmt --check clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AGVLyRZNEKKBSfBDJfbY3V
@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review September 5, 2026 19:58
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@AdaWorldAPI
AdaWorldAPI merged commit 9b57917 into main Sep 5, 2026
1 of 2 checks passed
@AdaWorldAPI AdaWorldAPI mentioned this pull request Sep 5, 2026
5 tasks
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