Control over Drop semantics
Open
@JayanAXHF is already working on this.
Since Jun 29, 2026.
C-tracking-issue
T-compiler
T-lang
T-opsem
T-types
- Dominant language
- Rust
- Stars
- 173
- Forks
- 119
- Avg merge
- 6h 31m
- Merged PRs (30d)
- 20
Description
| Metadata | |
|---|---|
| Point of contact | @JayanAXHF |
| Team(s) | compiler, lang, opsem, types |
| Goal document | 2026/manually-drop-attr |
Summary
Allow users to easily control the drop semantics of struct fields, letting them change drop order, and disable recursive destructors to make working with cross-language bindings easier.
- Allow cross-language bindings to expose struct fields without compatibility hazards, and
- Make all code that disables default destructor behavior more convenient to use in Rust.
Tasks and status
Note: we have updated the body to match the 2026 goal. Your original text is preserved below.
| Metadata | |
|---|---|
| Point of contact | @thunderseethe |
| Team(s) | compiler, lang, opsem, types |
| Goal document | 2026/manually-drop-attr |
Summary
Allow users to easily control the drop semantics of struct fields, letting them change drop order, and disable recursive destructors to make working with cross-language bindings easier.
- Allow cross-language bindings to expose struct fields without compatibility hazards, and
- Make all code that disables default destructor behavior more convenient to use in Rust.
Tasks and status
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.