Skip to content

Update Charon submodule to v0.1.68 - #4657

Merged
feliperodri merged 1 commit into
model-checking:mainfrom
tautschnig:charon-update-v0.1.68-pr
Jul 19, 2026
Merged

feliperodri merged 1 commit into
model-checking:mainfrom
tautschnig:charon-update-v0.1.68-pr

Conversation

@tautschnig

Copy link
Copy Markdown
Member

Advance the Charon pin from v0.1.67 (30cab882) to v0.1.68 (63f7749d). This is the first step of an incremental effort to catch the pinned Charon up with upstream; recent Charon releases build unpatched on current nightlies and ship per-nightly tags, so completing this march will eventually allow dropping scripts/charon-patch.diff (and the CI step applying it) entirely.

Charon v0.1.68 merges a trait's required_methods and provided_methods lists into a single methods list, and replaces TransformOptions with TranslateOptions, which gains mir_level and translate_all_methods fields. Adapt the LLBC backend accordingly, initializing the new fields with MirLevel::Built and translate_all_methods: false.

Refresh scripts/charon-patch.diff so its hunks apply against the v0.1.68 sources: the crate edition bump (let-chains require edition 2024 on current nightlies) and the impl-Trait capture annotations (use<I, T> on all_indices, use<'a, 'b, F> in expand_associated_types).

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

Advance the Charon pin from v0.1.67 (30cab882) to v0.1.68 (63f7749d). This is
the first step of an incremental effort to catch the pinned Charon up with
upstream; recent Charon releases build unpatched on current nightlies and ship
per-nightly tags, so completing this march will eventually allow dropping
scripts/charon-patch.diff (and the CI step applying it) entirely.

Charon v0.1.68 merges a trait's `required_methods` and `provided_methods`
lists into a single `methods` list, and replaces `TransformOptions` with
`TranslateOptions`, which gains `mir_level` and `translate_all_methods`
fields. Adapt the LLBC backend accordingly, initializing the new fields with
`MirLevel::Built` and `translate_all_methods: false`.

Refresh scripts/charon-patch.diff so its hunks apply against the v0.1.68
sources: the crate edition bump (let-chains require edition 2024 on current
nightlies) and the impl-Trait capture annotations (`use<I, T>` on
`all_indices`, `use<'a, 'b, F>` in expand_associated_types).

Co-authored-by: Kiro <[email protected]>
Copilot AI review requested due to automatic review settings July 19, 2026 13:12
@tautschnig
tautschnig requested a review from a team as a code owner July 19, 2026 13:12
@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 19, 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

This PR advances Kani’s pinned Charon version to v0.1.68 and updates Kani’s LLBC backend integration to accommodate upstream API changes, while also refreshing the local patch that is applied to Charon for current-nightly compatibility.

Changes:

  • Adapt LLBC translation code to Charon’s trait method list unification (required_methods/provided_methods → methods).
  • Replace TransformOptions with TranslateOptions in the Charon integration layer and initialize new required fields (mir_level, translate_all_methods).
  • Refresh scripts/charon-patch.diff hunks (edition 2024 + updated impl Trait capture lists) and update Cargo.lock for Charon v0.1.68.

Reviewed changes

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

File Description
scripts/charon-patch.diff Updates the patch applied to Charon so it applies cleanly to v0.1.68 and current nightly requirements (edition/capture lists).
kani-compiler/src/codegen_aeneas_llbc/mir_to_ullbc/mod.rs Updates trait-decl construction to match Charon’s merged methods list.
kani-compiler/src/codegen_aeneas_llbc/compiler_interface.rs Migrates from TransformOptions to TranslateOptions and initializes the new translation options fields.
Cargo.lock Bumps the locked charon crate version to 0.1.68.

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

@feliperodri
feliperodri added this pull request to the merge queue Jul 19, 2026
Merged via the queue into model-checking:main with commit f0636d7 Jul 19, 2026
34 checks passed
@tautschnig
tautschnig deleted the charon-update-v0.1.68-pr branch July 19, 2026 22:24
@feliperodri feliperodri added this to the Charon front end (LLBC) milestone Oct 22, 2026
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.

3 participants