rust-lang / rust-lang/rust-bindgen
Bindgen should stop people from passing type with dtor by value for generated functions
Open
Nobody has claimed this yet.
I-ABI-bug
- Dominant language
- Rust
- Stars
- 5.3k
- Forks
- 829
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 15
Description
It seems this would not work, and bindgen probably should refuse when asked to generate code for this.
Contributor guide
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.
Research direction
No file, test, or entry point is named. Start by locating the bindgen path that handles generated functions with by-value parameter types, then determine how destructor-bearing types are represented and where invalid cases can be rejected. Done means bindgen refuses this input rather than generating unusable code, with coverage for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- compilers, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100