Landing: 3ce3af99a166

Project / Subsystem

gcc / gccrs

Date

2026-08-02

Author

Owen Avery

Commit

3ce3af99a166fff35636a4f58d3d7d90b2223ecb

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
3ce3af99a166fff35636a4f58d3d7d90b2223ecb
source_type
github
headline
gccrs: Adjust SlicePattern and RestPattern handling
tldr
gccrs modifies AST handling for SlicePattern to better accommodate RestPatterns.
author
Owen Avery
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • AST
  • • pattern matching
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-08-02T00:00:00.000Z

GCC’s Rust front-end (gccrs) has refactored its Abstract Syntax Tree (AST) handling for SlicePattern and RestPattern. This change allows SlicePattern instances to represent multiple RestPattern children, simplifying the handling of potentially invalid patterns that are guarded by cfg attributes. The implications of RestPattern are now deferred until the HIR lowering stage, reducing complexity earlier in the compilation pipeline.