Landing: 344eb37e793b
Project / Subsystem
gcc / gccrs
Date
2026-07-02
Author
Lishin
Commit
344eb37e793b3dbbd4f45bba18bda789aa3c6715
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 344eb37e793b3dbbd4f45bba18bda789aa3c6715
- source_type
- github
- headline
- gccrs: Add builder for current-scope drop cleanup
- tldr
- GCC's Rust compiler adds a helper to build drop cleanup statements for the current scope.
- author
- Lishin
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • compiler
- • cleanup
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-02T00:00:00.000Z
GCC’s Rust compiler introduces a new function, CompileDrop::build_current_scope_drop_cleanup, to construct statement trees for drop calls within the current scope. This facilitates the subsequent placement of these cleanup statements into TRY_FINALLY_EXPR constructs, streamlining the process of ensuring resources are properly released.