Landing: 447997da72b0
Project / Subsystem
gcc / gccrs
Date
2026-08-16
Author
Owen Avery
Commit
447997da72b0d3df4f5a32df95e19231f85161b9
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 447997da72b0d3df4f5a32df95e19231f85161b9
- source_type
- github
- headline
- gccrs: Prevent warning on "unreachable" items
- tldr
- gccrs no longer incorrectly warns about unreachable items declared within block expressions.
- author
- Owen Avery
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • warnings
- • rust
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-16T00:00:00.000Z
This change corrects a behavior in gccrs where it would issue warnings for ‘unreachable’ items that were declared within block expressions. The fix ensures that the compiler correctly identifies that items defined within a block cannot be considered unreachable in the same way as statements or expressions might be, thus preventing spurious warnings and improving diagnostic accuracy.