Landing: 4c9eeceb42a9
Project / Subsystem
gcc / gccrs
Date
2026-08-03
Author
Aiman Najjar
Commit
4c9eeceb42a98a55b6fa122e821f4bdef91e22d9
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 4c9eeceb42a98a55b6fa122e821f4bdef91e22d9
- source_type
- github
- headline
- gccrs: Fix unused_assignment check logic
- tldr
- Improves gccrs's unused assignment linting by tracking only the last assignment.
- author
- Aiman Najjar
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • linting
- • unused variables
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-03T00:00:00.000Z
This patch refines gccrs’s unused_assignment linting logic to correctly identify unused variables. It ensures that only the most recent assignment to a variable is tracked. If a variable is assigned a new value before the previous assignment has been used, the older assignment is now correctly flagged as potentially unused, preventing false positives. This addresses a bug where previous assignments might be overlooked.