Landing: 3a54974005c6
Project / Subsystem
gcc / gccrs
Date
2026-06-27
Author
Yap Zhi Heng
Commit
3a54974005c60391c13aa44f97f03bf188c1e08c
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 3a54974005c60391c13aa44f97f03bf188c1e08c
- source_type
- github
- headline
- gccrs: Add support for `#[repr(transparent)]` attribute
- tldr
- Enables parsing and basic type-checking for Rust's `#[repr(transparent)]` attribute.
- author
- Yap Zhi Heng
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • type system
- • attribute
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-27T00:00:00.000Z
This commit introduces the necessary infrastructure within gccrs to recognize and process the #[repr(transparent)] attribute. It adds a variant to the ReprKind enum and modifies the type-checking logic to parse this attribute, enforcing that transparent structs or enums must have exactly one field. This lays the groundwork for the subsequent implementation of its compilation.