Landing: 00f557f225b5

Project / Subsystem

gcc / gccrs

Date

2026-07-21

Author

Owen Avery

Commit

00f557f225b5ba25fcc7ff664a20594988638019

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
00f557f225b5ba25fcc7ff664a20594988638019
source_type
github
headline
Fix deriving with generic const arguments in GCC Rust
tldr
Correctly handles constant generic arguments during derive macro expansion in GCC Rust.
author
Owen Avery
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • derive
  • • generics
discussion_id_link
—
bugzilla_pr
—
date
2026-07-21T00:00:00.000Z

This commit addresses an issue in the GCC Rust compiler related to deriving macros when constant generic arguments are involved. It ensures that a constant generic argument is correctly created from a constant generic parameter, allowing derive macros to function properly in such cases. The change primarily affects the type checking phase, and a new test case is included.