Repository navigation
Update Charon submodule to v0.1.73 - #4684
Merged
feliperodri merged 1 commit intoJul 28, 2026
Merged
Conversation
Advance the Charon pin from v0.1.71 (de910497) to v0.1.73 (dee66030), continuing the incremental effort to catch the pinned Charon up with upstream (the endgame is dropping scripts/charon-patch.diff entirely). Charon v0.1.72/73 change `CrateData::new` to take the transformation context by value and introduce a `std::assert_matches` use in the simplify_constants pass, which needs adapting to the pinned toolchain's macro re-export; scripts/charon-patch.diff gains that hunk and is refreshed over context-line drift. Co-authored-by: Kiro <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR advances Kani’s pinned Charon integration to v0.1.73 and updates Kani-side glue/patching to stay compatible with upstream API and toolchain changes, keeping the ongoing effort to reduce/remove local patching moving forward.
Changes:
- Refresh
scripts/charon-patch.difffor the updated Charon version and add a patch hunk adjustingassert_matchesimporting insimplify_constants. - Update the LLBC codegen path to call
charon_lib::export::CrateData::newwith the transformation context by value (new upstream signature). - Update
Cargo.lockfor Charon v0.1.73 and its new transitive dependencies.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/charon-patch.diff | Refreshes the patch applied to the Charon submodule; adds an import adjustment for assert_matches. |
| kani-compiler/src/codegen_aeneas_llbc/compiler_interface.rs | Adapts Kani’s Charon integration to the updated CrateData::new API (takes context by value). |
| Cargo.lock | Locks Charon v0.1.73 and new transitive crates (strip-ansi-escapes, vte). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
feliperodri
approved these changes
Jul 28, 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.71 (de910497) to v0.1.73 (dee66030), continuing the incremental effort to catch the pinned Charon up with upstream (the endgame is dropping scripts/charon-patch.diff entirely).
Charon v0.1.72/73 change
CrateData::newto take the transformation context by value and introduce astd::assert_matchesuse in the simplify_constants pass, which needs adapting to the pinned toolchain's macro re-export; scripts/charon-patch.diff gains that hunk and is refreshed over context-line drift.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.