Upgrade Rust toolchain to nightly-2026-02-12#4670
Open
tautschnig wants to merge 1 commit into
Open
Conversation
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>
Contributor
There was a problem hiding this comment.
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.tomlfromnightly-2026-02-06tonightly-2026-02-12. - Remove
rustc_errors::registry::Registryusage and update the JSON panic hook to callemit_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.
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-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
Registryfrom the diagnostics emitter:rustc_errors::registryis gone andEmitter::emit_diagnosticno longer takes a registry argument. Drop theErrorRegistryimport/creation in the panic hook and callemit_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.