Landing: 491fddc08ddd
Project / Subsystem
gcc / gccrs
Date
2026-09-08
Author
Philip Herron
Commit
491fddc08dddf2d1ab28ff17799ad83dd280ffc0
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 491fddc08dddf2d1ab28ff17799ad83dd280ffc0
- source_type
- github
- headline
- Filters candidates by checking self compatibility
- tldr
- GCC Rust filters out method candidates with incompatible 'self' types, preventing incorrect matches.
- author
- Philip Herron
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • rust
- • method resolution
- • type-checking
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-08T00:00:00.000Z
GCC Rust now filters out method selection candidates when the ‘self’ type is incompatible. This prevents erroneous matches, such as those involving double references (e.g., &&A) when only a single reference is expected or compatible, as seen with PartialOrd for &i8. This fix ensures that method resolution considers the precise nature of the receiver type.