Skip to content

Upgrade Rust toolchain to nightly-2026-02-12#4670

Open
tautschnig wants to merge 1 commit into
model-checking:mainfrom
tautschnig:toolchain-2026-02-12-pr
Open

Upgrade Rust toolchain to nightly-2026-02-12#4670
tautschnig wants to merge 1 commit into
model-checking:mainfrom
tautschnig:toolchain-2026-02-12-pr

Conversation

@tautschnig

Copy link
Copy Markdown
Member

Advance from nightly-2026-02-06 to nightly-2026-02-12. One source change is required (first needed at nightly-2026-02-07); every intermediate nightly up to 02-12 then builds and passes the regression with no further changes.

rust-lang/rust removed the error-code Registry from the diagnostics emitter: rustc_errors::registry is gone and Emitter::emit_diagnostic no longer takes a registry argument. Drop the ErrorRegistry import/creation in the panic hook and call emit_diagnostic(diagnostic) with a single argument.

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-02-06 to nightly-2026-02-12. One source change is
required (first needed at nightly-2026-02-07); every intermediate nightly up to
02-12 then builds and passes the regression with no further changes.

rust-lang/rust removed the error-code `Registry` from the diagnostics emitter:
`rustc_errors::registry` is gone and `Emitter::emit_diagnostic` no longer takes
a registry argument. Drop the `ErrorRegistry` import/creation in the panic hook
and call `emit_diagnostic(diagnostic)` with a single argument.

Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 24, 2026 08:51
@tautschnig
tautschnig requested a review from a team as a code owner July 24, 2026 08:51
@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 24, 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’s pinned Rust nightly toolchain and adapts the compiler session JSON panic hook to a rustc API change (removal of the diagnostics Registry argument), keeping Kani building and emitting diagnostics correctly on newer nightlies.

Changes:

  • Bump rust-toolchain.toml from nightly-2026-02-06 to nightly-2026-02-12.
  • Remove rustc_errors::registry::Registry usage and update the JSON panic hook to call emit_diagnostic(diagnostic) with the new signature.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
rust-toolchain.toml Pins the repo to nightly-2026-02-12.
kani-compiler/src/session.rs Updates JSON panic hook diagnostics emission to match the new rustc emitter API (no registry argument).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants