Bump Rust to 1.98.1 and the CI nightly to 2026-09-02 - #38620
Conversation
CI derives its stable toolchain from the `rust-version` field in the root `Cargo.toml`, so that field is what decides which warnings CI can see. Holding it at 1.97.1 meant the lints Rust 1.98 introduced only showed up when someone built locally. Raising it to 1.98.0 closes that gap. Cargo.lock needs no change, which matters because the doc test job resolves with `--locked`. Rust 1.98.0 uses LLVM 22.1.8, matching the `clang-22`, `lld-22`, and `llvm-22` packages the CI builder image already installs, so the Dockerfile needs no accompanying change. The comment on that apt stanza asks for the two to move together, and they still agree. Bumping `rust-version` does change the builder image tag, because the tag hashes the build arguments and `RUST_VERSION` is one of them. `ci/mkpipeline.sh` detects the missing tag and inserts bootstrap steps that build and push the stable, min, and console flavors for both architectures, so the first build on this branch will be slow but needs no manual intervention. The nightly pin moves to 2026-09-02. The note that pinned it to 2026-08-02 pointed at rust-lang/rust#160439, a rustdoc hang that broke the Doctests job, and that issue was closed as completed on 2026-08-06. The note is removed rather than reworded, because the constraint it described no longer exists. Advancing the nightly does make rustdoc's `redundant_explicit_links` lint fire, and `bin/doc` runs with `RUSTDOCFLAGS=-D warnings`, so those become errors. Eight doc comments in `mz-avro` and `mz-pgtest` spell an intra-doc link as a label plus an explicit legacy HTML path that resolves to the same destination. Dropping the explicit target is the rewrite rustdoc itself suggests, and every referenced item is in scope at the link site. The `flush` links in the Avro writer keep their explicit targets, because a fragment path is not redundant with its label and rustdoc does not flag them. `bin/lint-versions` records the Rust version that has been checked for compilation time regressions, and it is updated here so `bin/lint` passes. That validation has not been performed. Team Testing should confirm 1.98.0 before this merges. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
QA LLM Review1. HIGH -- 1.98.0 is the one stable release carrying an open, unfixed UB miscompilation
Rust 1.98.0 miscompiles some Detailsrustc 1.98.0 can decide that an impl's predicates are impossible when they involve associated-type projections plus an opaque type, emit I reproduced it on the platform we build for, The trigger needs dyn dispatch into an impl whose where-clauses involve associated-type projections or associated-type bounds, with an Suggested fix: hold |
|
Good catch, and it holds up on every point I could check independently:
The point about a green CI run proving nothing is the one that decides it. This PR is now a draft, held until 1.98.1 lands. I will then repin both On splitting: the nightly half is genuinely unaffected, since master has carried the fix since 2026-07-15 and the new pin is 2026-09-02. I am keeping it here rather than landing it separately, so the toolchain moves as one reviewable change. Happy to split it out instead if you would rather unblock the doc and nightly jobs now. Two things already surfaced by the nightly half, for the record. Advancing past 2026-08-02 required removing the stale blocker note in 🤖 Posted by Claude Code |
Blocked: held as a draft until Rust 1.98.1 is published. The pin in this branch still reads 1.98.0 and will be moved to 1.98.1 before this is marked ready. See the note at the bottom.
CI derives its stable toolchain from the
rust-versionfield in the rootCargo.toml, so that field is what decides which warnings CI can see. Holding it at 1.97.1 meant the lints Rust 1.98 introduced only showed up when someone built locally, which is how the warnings fixed in #38619 went unnoticed. Raising it closes that gap. Cargo.lock needs no change, which matters because the doc test job resolves with--locked.Rust 1.98 uses LLVM 22.1.8, matching the
clang-22,lld-22, andllvm-22packages the CI builder image already installs, so the Dockerfile needs no accompanying change. The comment on that apt stanza asks for the two to move together, and they still agree. Bumpingrust-versiondoes change the builder image tag, because the tag hashes the build arguments andRUST_VERSIONis one of them.ci/mkpipeline.shdetects the missing tag and inserts bootstrap steps that build and push the stable, min, and console flavors for both architectures, so the first build on this branch will be slow but needs no manual intervention.The nightly pin moves to 2026-09-02. The note that pinned it to 2026-08-02 pointed at rust-lang/rust#160439, a rustdoc hang that broke the Doctests job, and that issue was closed as completed on 2026-08-06. The note is removed rather than reworded, because the constraint it described no longer exists.
Advancing the nightly does make rustdoc's
redundant_explicit_linkslint fire, andbin/docruns withRUSTDOCFLAGS=-D warnings, so those become errors. Eight doc comments inmz-avroandmz-pgtestspell an intra-doc link as a label plus an explicit legacy HTML path that resolves to the same destination. Dropping the explicit target is the rewrite rustdoc itself suggests, and every referenced item is in scope at the link site. Theflushlinks in the Avro writer keep their explicit targets, because a fragment path is not redundant with its label and rustdoc does not flag them.Why this is blocked
Rust 1.98.0 carries an open
P-criticalmiscompilation, rust-lang/rust#161441: rustc can wrongly decide an impl's predicates are impossible when they involve associated-type projections plus an opaque type, emit a vacant vtable entry, and leave a zero in the method slot. Safe code then dispatches through a null pointer. It is a regression from 1.97.1, and it is silent at compile time, so a green CI run is not evidence that the tree is unaffected.This is not merely a developer-experience concern here, because
rust-versionselects the toolchain in thestableci-builder flavor that builds the shipped images. rust-lang/rust#158993 fixed it on master on 2026-07-15, which is after the 1.98 beta cutoff and therefore too late for 1.98.0. rust-lang/rust#161555 backported it and merged to thestablebranch on 2026-09-01, milestoned 1.98.1, on top of the exact 1.98.0 commit88d9e12ae178. As of this writing 1.98.1 is not yet on the release channel.The nightly half of this change is not exposed, since master has carried the fix since 2026-07-15 and the new pin is 2026-09-02. It is held here anyway so the toolchain moves as one reviewable change rather than two.
Outstanding before merge
Cargo.tomlandbin/lint-versionsto 1.98.1 once it is published, and re-run verification against it.bin/lint-versionsrecords the Rust version checked for compilation time regressions. That validation has not been performed. Team Testing should confirm the final version before this merges.The
cargo test --docjob could not be exercised locally because that machine has noprotoc, so it is covered only by CI. Building the nightly builder image also runscargo miri setupand installscargo-fuzz, neither of which can be checked outside an image build; both fail loudly in the bootstrap step rather than silently. Finally, a toolchain bump surfaces latent problems anywhere in the tree, not only in the diff, so a failure on this branch may point at code it does not touch.Release notes
No user-visible changes.
🤖 Posted by Claude Code