Landing: 29bb862bcd7b
Project / Subsystem
gcc / gccrs
Date
2026-09-11
Author
Owen Avery
Commit
29bb862bcd7b9276d33d93d9d1e48dca544f9831
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 29bb862bcd7b9276d33d93d9d1e48dca544f9831
- source_type
- github
- headline
- Fix copying of ClosureExpr in gccrs
- tldr
- GCC Rust's HIR now correctly copies `ClosureExpr` and its parameters, ensuring proper state management.
- author
- Owen Avery
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • HIR
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-11T00:00:00.000Z
Owen Avery fixed issues with copying HIR::ClosureExpr in gccrs, ensuring that locus information is set correctly for both the expression and its parameters.
This change improves the reliability of closure handling within the compiler’s intermediate representation.
It also includes a new test case to cover the corrected behavior, addressing Rust-GCC/gccrs#4740.