Upgrade Rust toolchain to nightly-2026-07-01 - #4764
Merged
feliperodri merged 3 commits intoAug 27, 2026
Merged
Conversation
This was referenced Aug 25, 2026
feliperodri
force-pushed
the
toolchain-2026-07-01
branch
from
August 27, 2026 00:00
3bfab8d to
9ac6b88
Compare
A much smaller upgrade than the previous two: no verification behaviour changed, and no test needed adjusting. **`FieldDef` moved to the `crate_def_with_ty!` macro.** Its inherent `ty()` and `ty_with_args()` are now provided by the `CrateDefType` trait, so the 17 call sites just need that trait in scope. This is a pure import change -- the semantics are identical (both still resolve to `def_ty`/`def_ty_with_args`). **`EarlyBinder::bind` takes the interner.** `bind(value)` becomes `bind(tcx, value)` at five sites. **`Terminator` gained MIR-level attributes** (`attributes: ThinVec<AttributeKind>`). The stable representation has no equivalent, and Kani-synthesized terminators carry none, so `internal_mir` passes an empty vector. **`TerminatorKind::Drop` lost `async_fut`**, so that field is dropped from the `internal_mir` conversion. **Work products are an `UnordMap`, not an `FxIndexMap`**, in `CodegenBackend::join_codegen`'s return type (both backends). Full regression run is clean on the first attempt: kani 607/607, cargo-kani 71/71, expected, script-based-pre 68/68, std-checks, cargo-ui, coverage, prusti, smack, kani-docs, json-handler, cargo-coverage, all unit tests, both `-D warnings` clippy gates, the `-D warnings` build, fmt, and the LLBC build.
feliperodri
force-pushed
the
toolchain-2026-07-01
branch
from
August 27, 2026 00:02
9ac6b88 to
46f2e3b
Compare
feliperodri
marked this pull request as ready for review
August 27, 2026 00:17
feliperodri
enabled auto-merge
August 27, 2026 00:56
`EarlyBinder::bind` takes the interner as of nightly-2026-07-01. The Fn-bounded generic instantiation added by model-checking#4726 landed on main after this branch was written, so its two `bind` call sites still used the old one-argument form and failed to compile against the new toolchain.
rajath-mk
approved these changes
Aug 27, 2026
Merged
via the queue into
model-checking:main
with commit Aug 27, 2026
29ca8fc
33 of 34 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Bumps
rust-toolchain.tomlfromnightly-2026-06-01tonightly-2026-07-01.A much smaller upgrade than the previous two (25 compile errors vs. 66 for 06-01): no verification behaviour changed and no test needed adjusting. Every change is a mechanical adaptation to a moved or renamed API.
1.
FieldDefmoved to thecrate_def_with_ty!macroty()andty_with_args()are no longer inherent methods; they come from theCrateDefTypetrait, which the macro implements. The 17 call sites across 10 files therefore only need that trait in scope. The semantics are identical — both the old inherent methods and the trait defaults resolve todef_ty/def_ty_with_args— so this is a pure import change.Imports were added per file to match each file's existing
use rustc_public::..style. Worth noting for future upgrades: as morerustc_publictypes migrate onto these macros, this particular adaptation is likely to recur, so a shared import point may eventually be worth it.2.
EarlyBinder::bindtakes the internerEarlyBinder::bind(value)becomesEarlyBinder::bind(tcx, value)— five sites instubbing/mod.rs,transform/mod.rsandcodegen/typ.rs.3.
Terminatorgained MIR-level attributesThe stable (
rustc_public) representation has no equivalent, and terminators Kani synthesizes carry none, so theinternal_mirconversion passes an empty vector.4.
TerminatorKind::Droplostasync_futThat field is dropped from the
internal_mirconversion.5. Work products are an
UnordMapCodegenBackend::join_codegen's return type changed fromFxIndexMap<WorkProductId, WorkProduct>toUnordMap<..>. Updated in both backends, including thedowncasttarget and the empty map each returns.Testing
Local, macOS aarch64, CBMC 6.10.0 (
cbmc-6.9.0-214-g45436eea34). Clean on the first attempt — no test changes were needed:kanicargo-kaniscript-based-prestd-checkscargo-uicoverageprusti/smack/kani-docs/json-handler/cargo-coverage/firecrackeruicadicaltests, see belowOther gates, all clean:
cargo build-devcargo build-dev -- --features cprover --features llbccargo clippy --workspace --tests -- -D warningsandRUSTFLAGS="--cfg=kani_sysroot" cargo clippy --workspace -- -D warningsRUSTFLAGS="-D warnings" cargo build --no-default-features --features cprover./scripts/kani-fmt.sh --checkcprover_bindings,kani-compiler,kani-driver,kani_metadata,kani --features concrete_playback,kani_macrosEnvironment caveat: this CBMC build has no
cadical, soui/solver-{attribute,option}/cadicalfail locally on output text only ("The specified solver, 'cadical', is not available"). Both are expected to be clean on CI.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.