Landing: a2f3fb27c419

Project / Subsystem

gcc / gccrs

Date

2026-07-10

Author

Enes Cevik

Commit

a2f3fb27c419d8a97b9b4a3dcf7c35e248182684

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
a2f3fb27c419d8a97b9b4a3dcf7c35e248182684
source_type
github
headline
GCC Rust frontend registers `needs_allocator` attribute stub
tldr
GCC Rust frontend registers `needs_allocator` attribute as a stub, emitting a warning.
author
Enes Cevik
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • attribute
  • • compiler
  • • alloc crate
discussion_id_link
—
bugzilla_pr
—
date
2026-07-10T00:00:00.000Z

GCC’s Rust frontend has registered the needs_allocator attribute as a stub. This attribute is required for compiling the alloc crate, but its full implementation is deferred due to dependencies on global_allocator infrastructure and the core::alloc::GlobalAlloc trait, which are not yet fully supported in GCC Rust. The stub emits a compiler warning when the attribute is encountered.