]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: [E0027] struct pattern fails to specify struct's fields
authorMuhammad Mahad <mahadtxt@gmail.com>
Tue, 27 Jun 2023 12:08:59 +0000 (17:08 +0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:49:30 +0000 (18:49 +0100)
commit3913845305f7a20cb3d0b372492716687d823b98
treeed580ea4e7fafe61434e4884a128606f33631174
parent11fbade585049d2ff2f51f66a1eb6106deaec619
gccrs: [E0027] struct pattern fails to specify struct's fields

A pattern for a struct fails to specify a sub-pattern
for every one of the struct's fields. - pattern does
not mention fields `x`, `y`

gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit): called rust_error_at

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
gcc/rust/typecheck/rust-hir-type-check-pattern.cc