gccrs: Fix ICE on enum struct-variant patterns
Fixes an internal compiler error when matching enum variants with struct patterns.
This commit addresses an internal compiler error (ICE) in gccrs related to struct patterns used with enum variants. The StructPattern::is_refutable assertion incorrectly assumed the Abstract Data Type (ADT) was not an enum. The fix allows the compiler to correctly handle struct patterns on enums with multiple variants by returning true and proceeding with field checks, while single-variant enums continue with existing logic.
In Details
This change modifies StructPattern::is_refutable in gcc/rust/hir/tree/rust-hir-pattern-abstract.cc. The previous implementation asserted that the ADT was not an enum, leading to an ICE when a struct pattern was applied to an enum variant. The fix correctly identifies multi-variant enums as refutable and proceeds to field checks, while single-variant enums are handled by existing logic.