Skip to content

Upgrade Rust toolchain to nightly-2026-01-22#4645

Merged
tautschnig merged 1 commit into
model-checking:mainfrom
tautschnig:toolchain-2026-01-22-manual
Jul 16, 2026
Merged

Upgrade Rust toolchain to nightly-2026-01-22#4645
tautschnig merged 1 commit into
model-checking:mainfrom
tautschnig:toolchain-2026-01-22-manual

Conversation

@tautschnig

@tautschnig tautschnig commented Jul 15, 2026

Copy link
Copy Markdown
Member

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.

  • Remove Deref/DerefMut impl for Providers. 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).

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.

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>
Copilot AI review requested due to automatic review settings July 15, 2026 15:03
@tautschnig
tautschnig requested a review from a team as a code owner July 15, 2026 15:03
@github-actions github-actions Bot added Z-EndToEndBenchCI Tag a PR to run benchmark CI Z-CompilerBenchCI Tag a PR to run benchmark CI labels Jul 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.toml from nightly-2026-01-14 to nightly-2026-01-22.
  • Adjust query provider wiring to explicitly access Providers.queries.* after upstream removal of Deref forwarding.
  • Update .expected UI 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.

@tautschnig

Copy link
Copy Markdown
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.

@tautschnig
tautschnig enabled auto-merge July 16, 2026 17:12
@tautschnig
tautschnig added this pull request to the merge queue Jul 16, 2026
Merged via the queue into model-checking:main with commit e7fa2e8 Jul 16, 2026
60 of 77 checks passed
@tautschnig
tautschnig deleted the toolchain-2026-01-22-manual branch July 16, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Z-CompilerBenchCI Tag a PR to run benchmark CI Z-EndToEndBenchCI Tag a PR to run benchmark CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toolchain upgrade to nightly-2026-01-15 failed Update nightly version to support rustc >= 1.94.0

3 participants