Skip to content

Unify destruction under a single trait - #687

Open
lucic71 wants to merge 4 commits into
Cpp2Rust:masterfrom
lucic71:destroy-temporaries
Open

lucic71 wants to merge 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.

This branch has not been deployed

No deployments
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.

1 participant