Landing: 7cd98512853d

Project / Subsystem

gcc / gccrs

Date

2026-07-14

Author

Enes Cevik

Commit

7cd98512853df3cc8ffd0357fac0d69d820df631

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
7cd98512853df3cc8ffd0357fac0d69d820df631
source_type
github
headline
Add 'range_inclusive_new' lang item for inclusive ranges
tldr
GCC Rust front-end now uses a dedicated lang item for desugaring inclusive range expressions.
author
Enes Cevik
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • lang item
  • • desugaring
discussion_id_link
—
bugzilla_pr
—
date
2026-07-14T00:00:00.000Z

This patch introduces the range_inclusive_new lang item to the GCC Rust compiler. Inclusive range expressions are now desugared into a function call targeting this lang item during AST-to-HIR lowering, rather than being directly lowered into a static struct. This change aligns with the removal of the HIR::RangeFromToInclExpr class.