rust-lang / rust-lang/rust-bindgen
bindgen doesn't always generate accessors for bitfields
Open
Nobody has claimed this yet.
A-bitfields
I-needs-reduced-test-case
- Dominant language
- Rust
- Stars
- 5.3k
- Forks
- 829
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 15
Description
https://gist.github.com/db48x/ac5185816f1b921bb8ca804883165e17
No particular arguments needed.
I expected there to be an impl glyph_row with accessor methods for the bitfield in this struct.
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
Start with the linked gist and reproduce bindgen's output for the glyph_row struct. Inspect the generated bindings and the bitfield-handling entry point to determine why the accessor impl glyph_row is missing. Done means the reported bitfield produces the expected accessor methods.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100