rust-lang / rust-lang/rust-bindgen
Bindgen trying to derive default for types that can't be.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.3k
- Forks
- 829
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 15
Description
pub __bindgen_padding_0: [u8; 40usize],
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait Default is not implemented for [u8; 40]
This very well may be something I (should) have to work around, but could you please explain the meaning of "when possible" in the doc?
$ rustup show
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\ddumont\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc (default)
1.86.0-x86_64-pc-windows-msvc
active toolchain
----------------
stable-x86_64-pc-windows-msvc (default)
rustc 1.85.0 (4d91de4e4 2025-02-17)
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
The issue names no source file or test. Start by locating the documentation passage containing “when possible” and reproduce the generated binding with the reported Rust 1.85 Windows toolchain; done means determining whether Default should be derived for the padding array and clarifying or correcting that documented behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100