Landing: f9eb87556d10

Project / Subsystem

gcc / gccrs

Date

2026-06-27

Author

Lucas Ly Ba

Commit

f9eb87556d10353a8ca678c4c570772a6f2df043

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
f9eb87556d10353a8ca678c4c570772a6f2df043
source_type
github
headline
gccrs: Add lint for unused Drop bound on trait objects
tldr
GCC's Rust compiler warns about redundant Drop bounds on trait objects.
author
Lucas Ly Ba
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • lint
  • • rust
discussion_id_link
—
bugzilla_pr
—
date
2026-06-27T00:00:00.000Z

GCC’s Rust compiler now issues a warning when a trait object is declared with a Drop bound. Since trait objects themselves are not dropped and values behind them are dropped automatically, the Drop bound on a trait object has no effect. This new lint helps developers by identifying and flagging these redundant, no-op bounds.