Repository navigation
Upgrade Rust toolchain to nightly-2026-11-19 - #5201
Merged
feliperodri merged 2 commits intoNov 19, 2026
Merged
Conversation
Resolves model-checking#5200. Relevant upstream changes: - rust-lang/rust#166037: reflection: enable tool attributes to be reflectable. `rustc_attr_ir::Attribute::Tool` is now a struct variant `Tool { item, opts }`; update pattern matches in kani_middle/attributes.rs accordingly. - rust-lang/rust#164544: Implement `rustc_intrinsic(llvm = "...")`. `IntrinsicDef::name` is now an `Intrinsic` enum (`Rustc(Symbol)` or `Backend { llvm }`) instead of a bare `Symbol`; compare against `Intrinsic::Rustc(sym::simd_bitmask)` in kani_middle/intrinsics.rs. Signed-off-by: Felipe Monteiro <felisous@amazon.com>
nightly-2026-11-19 removes `TargetDataLayout::i8_align`: the alignment of `i8` is no longer part of the data layout, and `Integer::I8.align` always returns `Align::ONE`. Use `Integer::I8.align` for the `Bool`, `I8` and `U8` alignments that the LLBC backend reports to Charon. Signed-off-by: Felipe Monteiro <felisous@amazon.com>
rajath-mk
approved these changes
Nov 19, 2026
rajath-mk
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Integer::I8.align is Align::ONE at this nightly, so the LLBC alignment is unchanged. Here Stubbing and FunctionContracts pass, Operators/bitmask.rs passes (so the Intrinsic::Rustc match still fires), and the LLBC suite is 25/25. The perf-benchcomp failure exited with 143 (SIGTERM), which looks like a killed runner; worth a re-run.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 19, 2026
Merged
via the queue into
model-checking:main
with commit Nov 19, 2026
62e6f80
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.
Upgrades the Rust toolchain from nightly-2026-11-18 to nightly-2026-11-19. The automated upgrade failed in
cargo build-devbecause of two rustc API changes in this range:reflection: enable tool attributes to be reflectable rust-lang/rust#166037 ("reflection: enable tool attributes to be reflectable"):
Attribute::Tool(Box<AttrItem>)becameAttribute::Tool { item, opts }. The four matches inkani_middle/attributes.rsnow bind theitemfield.Add an optional
llvm =argument to rustc_intrinsic. rust-lang/rust#164544 (rustc_intrinsic(llvm = "...")):IntrinsicDef::nameis nowIntrinsic::{Rustc(Symbol), Backend { llvm }}. Thesimd_bitmaskcheck inkani_middle/intrinsics.rsnow compares againstIntrinsic::Rustc(sym::simd_bitmask). Nothing in core/std uses the newBackendvariant in this nightly, so there is no new handling for it.TargetDataLayout::i8_alignwas removed: the alignment ofi8is no longer part of the data layout (Integer::I8.alignis always 1). The LLBC backend (codegen_aeneas_llbc/mir_to_ullbc/mod.rs) now usesrustc_abi::Integer::I8.alignfor theBool,I8andU8alignments it reports to Charon.No tests change.
Testing
Locally, with CBMC 6.11.0:
cargo build-dev,cargo build-dev -- --features cprover --features llbc,./scripts/kani-fmt.shandcargo clippy -p kani-compilersucceed;./scripts/kani-llbc-regression.shpasses.expected(562 passed),cargo-kani(72),cargo-ui(30) andscript-based-pre(102).kani(655 passed, 2 failed) andui(170 passed, 2 failed) have failures that also occur onmainin the same local environment:Quantifiers/typed_variables.rsandQuantifiers/arbitrary_range.rs, andloop-contracts-synthesis/main_{signed,unsigned}, which need agoto-synthesizerbinary that isn't installed locally.kani-compiler,kani-driver,kani_metadataandcprover_bindingspass.Resolves #5200
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.