Landing: 2d06661660f1
Project / Subsystem
gcc / gccrs
Date
2026-09-06
Author
Philip Herron
Commit
2d06661660f19fc9a17e9f9e01271e0b4f6eee97
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 2d06661660f19fc9a17e9f9e01271e0b4f6eee97
- source_type
- github
- headline
- gccrs: Fix constant path handling.
- tldr
- Ensures constants within paths are handled correctly during pattern matching and compilation.
- author
- Philip Herron
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rustc
- • pattern matching
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-06T00:00:00.000Z
This commit corrects how gccrs handles constants that appear within paths, specifically in the context of pattern matching and expression compilation. It resolves an issue (Rust-GCC/gccrs#4851) by updating CompilePatternCheckExpr::visit and TypeCheckPattern::visit to correctly process non-ADT (Algebraic Data Type) paths that involve constants.