Skip to content

Upgrade Rust toolchain to nightly-2026-11-19 - #5201

Merged
feliperodri merged 2 commits into
model-checking:mainfrom
feliperodri:toolchain-2026-11-19
Nov 19, 2026
Merged

feliperodri merged 2 commits into
model-checking:mainfrom
feliperodri:toolchain-2026-11-19

Conversation

@feliperodri

@feliperodri feliperodri commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Upgrades the Rust toolchain from nightly-2026-11-18 to nightly-2026-11-19. The automated upgrade failed in cargo build-dev because 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>) became Attribute::Tool { item, opts }. The four matches in kani_middle/attributes.rs now bind the item field.

  • Add an optional llvm = argument to rustc_intrinsic. rust-lang/rust#164544 (rustc_intrinsic(llvm = "...")): IntrinsicDef::name is now Intrinsic::{Rustc(Symbol), Backend { llvm }}. The simd_bitmask check in kani_middle/intrinsics.rs now compares against Intrinsic::Rustc(sym::simd_bitmask). Nothing in core/std uses the new Backend variant in this nightly, so there is no new handling for it.

  • TargetDataLayout::i8_align was removed: the alignment of i8 is no longer part of the data layout (Integer::I8.align is always 1). The LLBC backend (codegen_aeneas_llbc/mir_to_ullbc/mod.rs) now uses rustc_abi::Integer::I8.align for the Bool, I8 and U8 alignments 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.sh and cargo clippy -p kani-compiler succeed; ./scripts/kani-llbc-regression.sh passes.
  • These suites have no failures: expected (562 passed), cargo-kani (72), cargo-ui (30) and script-based-pre (102).
  • kani (655 passed, 2 failed) and ui (170 passed, 2 failed) have failures that also occur on main in the same local environment: Quantifiers/typed_variables.rs and Quantifiers/arbitrary_range.rs, and loop-contracts-synthesis/main_{signed,unsigned}, which need a goto-synthesizer binary that isn't installed locally.
  • Unit tests for kani-compiler, kani-driver, kani_metadata and cprover_bindings pass.

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.

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>
@feliperodri
feliperodri requested review from a team as code owners November 19, 2026 06:01
@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 Nov 19, 2026
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 rajath-mk 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.

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.

@feliperodri
feliperodri added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@feliperodri
feliperodri added this pull request to the merge queue Nov 19, 2026
Merged via the queue into model-checking:main with commit 62e6f80 Nov 19, 2026
33 of 34 checks passed
@feliperodri
feliperodri deleted the toolchain-2026-11-19 branch November 19, 2026 21:06
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-11-19 failed

2 participants