rust-lang / rust-lang/rust-bindgen

Bindgen should stop people from passing type with dtor by value for generated functions

Open
#713 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.