TUESDAY, MARCH 31, 2026
gccrs
gccrs: Fix ICE with infer type used in struct attribute
gccrs prevents ICEs by properly handling infer types in struct attributes.
An Integer Compile Error (ICE) in gccrs when an ‘infer type’ was used in a struct attribute has been fixed. The compiler now emits an error instead of crashing when it encounters this situation in struct declarations and array types.
In Details
This patch updates rust-hir-type-check-item.cc and rust-tyty.cc to detect and report errors when an infer type is used in struct attributes or array capacities, preventing an ICE. This relates to type inference within the Rust frontend.