Landing: 18ad6345e6df
Project / Subsystem
gcc / gccrs
Date
2026-09-10
Author
Philip Herron
Commit
18ad6345e6df72ca010952d972dfadef3195a64b
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 18ad6345e6df72ca010952d972dfadef3195a64b
- source_type
- github
- headline
- Fix Ord derive in gccrs to use Self for generic contexts
- tldr
- GCC Rust's Ord derive now correctly uses `Self` to handle generic type parameters, fixing a bug with trait implementations.
- author
- Philip Herron
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • bugfix
- • derive
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-10T00:00:00.000Z
Philip Herron corrected the derive macro for the Ord trait in gccrs to use Self instead of a raw type name.
This change ensures that the generic type parameters of an implementation are correctly captured when deriving Ord.
This resolves an issue with how trait implementations are handled in generic contexts, specifically fixing Rust-GCC/gccrs#4879.