Landing: 6db8a24ca93e

Project / Subsystem

gcc / gccrs

Date

2026-08-07

Author

Arthur Cohen

Commit

6db8a24ca93e4199f3adcaf6b5680ab0d683353c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
6db8a24ca93e4199f3adcaf6b5680ab0d683353c
source_type
github
headline
gccrs: lower: Use enum instead of bool for checking for valid impl Trait params
tldr
Refactors impl Trait parameter checking in gccrs's AST lowering to use an enum.
author
Arthur Cohen
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • lowering
  • • impl trait
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-08-07T00:00:00.000Z

This commit refactors the implementation of impl Trait parameter checking in gccrs’s AST lowering phase. Previously, a boolean flag was used to determine the validity of impl Trait parameters in function arguments. This change replaces the boolean with a more descriptive enum class, improving code clarity and maintainability. The affected AST lowering functions have been updated to use the new enum API.