Landing: 3b338a1ce871

Project / Subsystem

gcc / gccrs

Date

2026-08-01

Author

Aiman Najjar

Commit

3b338a1ce871cbf36731d56f02d1d458243c1c23

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
3b338a1ce871cbf36731d56f02d1d458243c1c23
source_type
github
headline
gccrs: Fix duplicate unused assignment removals
tldr
gccrs: Corrects a bug where unused assignments were removed multiple times.
author
Aiman Najjar
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • unused code
  • • linting
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-08-01T00:00:00.000Z

This commit addresses an issue in gccrs where the compiler erroneously removed unused assignments more than once for the same identifier, as reported in Rust-GCC/gccrs#4674. The fix modifies the UnusedContext::remove_assign function to ensure that each unused assignment is removed only a single time. A new test case is included to specifically verify this correction.