Skip to content

Fix: handle dangling references left by --remove-adt-clauses#1122

Open
maximebuyse wants to merge 1 commit intoAeneasVerif:mainfrom
maximebuyse:fix-1120
Open

Fix: handle dangling references left by --remove-adt-clauses#1122
maximebuyse wants to merge 1 commit intoAeneasVerif:mainfrom
maximebuyse:fix-1120

Conversation

@maximebuyse
Copy link
Copy Markdown

Fixes #1120

This is a claude implementation for the design from #1120 (comment)

Comment thread charon/src/ast/types.rs Outdated
Comment thread charon/src/transform/typecheck_and_unify.rs Outdated
Comment thread charon/src/transform/simplify_output/remove_adt_clauses.rs Outdated
Comment thread charon/src/transform/simplify_output/remove_adt_clauses.rs Outdated
Comment thread charon/src/transform/simplify_output/remove_adt_clauses.rs Outdated
Comment thread charon/src/transform/simplify_output/remove_adt_clauses.rs Outdated
Comment thread charon/src/transform/simplify_output/remove_adt_clauses.rs Outdated
Comment thread charon/src/transform/simplify_output/remove_adt_clauses.rs Outdated
Copy link
Copy Markdown
Member

@Nadrieril Nadrieril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just two nits!

@Nadrieril
Copy link
Copy Markdown
Member

Looks good! #1127 just got merged; please rebase (and may as well squash) your PR, and because you've modified the AST you'll also need to increment the version number in Cargo.toml then run make test in the root to propagate that number.

@maximebuyse maximebuyse force-pushed the fix-1120 branch 2 times, most recently from d931040 to e35b7fb Compare May 7, 2026 12:34
@Nadrieril Nadrieril enabled auto-merge May 7, 2026 14:34
auto-merge was automatically disabled May 7, 2026 15:45

Head branch was pushed to by a user without write access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: error on dereferencing a Copy type inside a closure

2 participants