Landing: f610d9c83708

Project / Subsystem

gcc / gccrs

Date

2026-07-16

Author

Enes Cevik

Commit

f610d9c837080dc353512e46d55881f554ec1f02

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
f610d9c837080dc353512e46d55881f554ec1f02
source_type
github
headline
gccrs: Implement `unsafe_cell` lang item
tldr
gccrs adds support for the `unsafe_cell` language item, preventing const marking on types containing it.
author
Enes Cevik
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • semantics
  • • safety
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-07-16T00:00:00.000Z

GCC’s Rust front-end (gccrs) now recognizes the unsafe_cell language item. This change prevents types containing unsafe_cell from being marked as constant, aligning with Rust’s semantics for such types. This commit includes new functions for checking the presence of unsafe_cell and updates the compiler’s language item registry, along with a new test case.