Landing: 7b891aa8e49a
Project / Subsystem
gcc / gccrs
Date
2026-06-27
Author
Lucas Ly Ba
Commit
7b891aa8e49af18e14a4e54ed40ddc359b1e8d27
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 7b891aa8e49af18e14a4e54ed40ddc359b1e8d27
- source_type
- github
- headline
- gccrs: add break with label and loop lint
- tldr
- gccrs now warns about potentially confusing labeled breaks of loop expressions.
- author
- Lucas Ly Ba
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • compiler
- • lint
- • control flow
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-27T00:00:00.000Z
The gccrs compiler now issues a warning for labeled break statements that target loop expressions. This lint helps prevent confusion between labeled breaks and unlabeled breaks of loop values, improving code clarity and reducing potential bugs.