Landing: 270f1230c18a

Project / Subsystem

gcc / gccrs

Date

2026-06-19

Author

Lishin

Commit

270f1230c18a01f5ec55bee44cde7dc3e065267a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
270f1230c18a01f5ec55bee44cde7dc3e065267a
source_type
github
headline
gccrs: Emit drops for function parameters
tldr
GCC's Rust compiler now ensures function parameters are dropped after function execution.
author
Lishin
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • cleanup
  • • parameters
discussion_id_link
—
bugzilla_pr
—
date
2026-06-19T00:00:00.000Z

GCC’s Rust compiler now correctly emits drop calls for function parameters. These parameters are added to the function scope’s drop list after the function body block is constructed, ensuring they are dropped in the correct order relative to local variables upon normal function exit. This change improves resource management and prevents leaks.