Upgrade Rust toolchain to nightly-2026-01-22#4645
Merged
tautschnig merged 1 commit intoJul 16, 2026
Merged
Conversation
Advance from nightly-2026-01-14 to nightly-2026-01-22. Two source changes are required (both first needed at nightly-2026-01-15); every intermediate nightly up to 01-22 then builds and passes the regression with no further changes. - rust-lang/rust#151096 removed the `Deref`/`DerefMut` impl for `rustc_middle::util::Providers` (which forwarded to its inner `queries` field). Access the query providers explicitly in provide.rs: `providers.queries.optimized_mir` and `DEFAULT_QUERY_PROVIDERS.queries.optimized_mir`. - rustc now renders unstable traits in `E0277` as "the nightly-only, unstable trait" rather than "the trait"; update the float-to-int-in-range expected files (`FloatToInt` is unstable). Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Kani to build and pass regression tests on a newer Rust nightly toolchain by accommodating upstream rustc API and diagnostic output changes introduced after nightly-2026-01-14.
Changes:
- Bump
rust-toolchain.tomlfromnightly-2026-01-14tonightly-2026-01-22. - Adjust query provider wiring to explicitly access
Providers.queries.*after upstream removal ofDerefforwarding. - Update
.expectedUI test outputs for E0277 wording that now labels unstable traits as “nightly-only”.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
rust-toolchain.toml |
Advances the pinned Rust nightly used to build and test Kani. |
kani-compiler/src/kani_middle/provide.rs |
Updates rustc query provider access to match the new Providers API shape. |
tests/expected/float-to-int-in-range/invalid_int.expected |
Refreshes expected E0277 text to match new rustc wording for unstable traits. |
tests/expected/float-to-int-in-range/invalid_float.expected |
Refreshes expected E0277 text to match new rustc wording for unstable traits. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
Author
|
Seems like we are impacted by a Ubuntu outage: https://status.canonical.com/#/incident/KNms6QK9ewuzz-7xUsPsNylV20jEt5kyKsd8A-3ptQHQlVHKXwTShtGeZgLBjkPGsYE34Yqq6Qn0e1aU5TaseA%3D%3D - though finding further information proving pretty tricky. |
feliperodri
approved these changes
Jul 16, 2026
tautschnig
enabled auto-merge
July 16, 2026 17:12
Merged
via the queue into
model-checking:main
with commit Jul 16, 2026
e7fa2e8
60 of 77 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.
Advance from nightly-2026-01-14 to nightly-2026-01-22. Two source changes are required (both first needed at nightly-2026-01-15); every intermediate nightly up to 01-22 then builds and passes the regression with no further changes.
Deref/DerefMutimpl forProviders. rust-lang/rust#151096 removed theDeref/DerefMutimpl forrustc_middle::util::Providers(which forwarded to its innerqueriesfield). Access the query providers explicitly in provide.rs:providers.queries.optimized_mirandDEFAULT_QUERY_PROVIDERS.queries.optimized_mir.E0277as "the nightly-only, unstable trait" rather than "the trait"; update the float-to-int-in-range expected files (FloatToIntis unstable).Resolves #4646
Resolves #4603
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.