Repository navigation
Update Charon submodule to v0.1.68 - #4657
Merged
feliperodri merged 1 commit intoJul 19, 2026
Merged
Conversation
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]>
Contributor
There was a problem hiding this comment.
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
TransformOptionswithTranslateOptionsin the Charon integration layer and initialize new required fields (mir_level,translate_all_methods). - Refresh
scripts/charon-patch.diffhunks (edition 2024 + updatedimpl Traitcapture lists) and updateCargo.lockfor 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
approved these changes
Jul 19, 2026
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 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_methodsandprovided_methodslists into a singlemethodslist, and replacesTransformOptionswithTranslateOptions, which gainsmir_levelandtranslate_all_methodsfields. Adapt the LLBC backend accordingly, initializing the new fields withMirLevel::Builtandtranslate_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>onall_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.