Landing: a3172f00f794

Project / Subsystem

gcc / gccrs

Date

2026-09-04

Author

Arthur Cohen

Commit

a3172f00f7948b21fdf0861811d07713709856c8

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
a3172f00f7948b21fdf0861811d07713709856c8
source_type
github
headline
gccrs: Feature gate returns result for better error handling
tldr
gccrs's feature gate now returns a result, allowing for more informative feedback on feature status during compilation.
author
Arthur Cohen
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • compiler
  • • feature-gate
discussion_id_link
—
bugzilla_pr
—
date
2026-09-04T00:00:00.000Z

This commit refactors gccrs’s feature gating mechanism by introducing a GateResult enum. The FeatureGate::gate function now returns this enum, indicating whether a feature was successfully gated or encountered an issue. This change improves error reporting and makes the gating status more accessible to other compiler passes, as the gate function is now public.