Landing: 068936fe408e
Project / Subsystem
gcc / gccrs
Date
2026-08-04
Author
Arthur Cohen
Commit
068936fe408e879fbd4332bb976b4904224642aa
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 068936fe408e879fbd4332bb976b4904224642aa
- source_type
- github
- headline
- gccrs: Correctly handle default type parameters in derived impls
- tldr
- gccrs: Fixes derive macro to not add default type parameters to impl blocks.
- author
- Arthur Cohen
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • derive
- • generics
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-04T00:00:00.000Z
The gccrs compiler now correctly handles type parameters when generating derived implementations. It avoids adding default type parameters to impl blocks, as these are only valid for type definitions, not implementations. This correction involves changes to the AST builder and the derive expansion logic, along with a new test case.