#[repr(C)] not necessarily compatible with C
Open
Nobody has claimed this yet.
A-type-layout
- Dominant language
- reStructuredText
- Stars
- 497
- Forks
- 41
- Avg merge
- 3h 52m
- Merged PRs (30d)
- 4
Description
https://spec.ferrocene.dev/types-and-traits.html#type-representation
It was discovered^bug-report that for MSVC compilers certain cases around ZST's and packed structs have a different memory layout than what rustc does on every platform.
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
Read the type representation section at spec.ferrocene.dev/types-and-traits.html#type-representation, then compare its #[repr(C)] rules with the linked rustc issue 81996. Confirm the MSVC differences for zero-sized types and packed structs, and update the specification so its stated layout compatibility matches the relevant behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100