Skip to content

Unify destruction under a single trait - #687

Merged
nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:destroy-temporaries
Nov 30, 2026
Merged

nunoplopes merged 4 commits into
Cpp2Rust:masterfrom
lucic71:destroy-temporaries

Conversation

@lucic71

@lucic71 lucic71 commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Lambdas, global variables, and local variables all used different forms to call the destructor. This unifies them under the Destructible trait.

Also add Destructible for refcount arrays, unsafe already had it.

@nunoplopes
nunoplopes merged commit e2af31b into Cpp2Rust:master Nov 30, 2026
9 checks passed
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.

2 participants