Landing: 1243e4abaaf0

Project / Subsystem

gcc / gccrs

Date

2026-06-25

Author

Enes Cevik

Commit

1243e4abaaf0bd1e9cb33a4e1171502e0258b5a4

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
1243e4abaaf0bd1e9cb33a4e1171502e0258b5a4
source_type
github
headline
gccrs: Add array to slice unsized coercion support
tldr
Compiler now supports coercing arrays to slices, enabling more flexible type conversions.
author
Enes Cevik
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • coercion
  • • type system
discussion_id_link
—
bugzilla_pr
—
date
2026-06-25T00:00:00.000Z

This patch adds support for unsized coercions from arrays to slices in the GCC Rust front-end. Previously, only dynamic trait coercions were handled, and array-to-slice conversions were rejected. The compiler now correctly identifies and tags valid array-to-slice coercions, improving type compatibility.