aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-02-04 17:07:05 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2024-02-07 12:40:23 +0100
commit72a0554c7a269efeb6bb5462c3968f40fdf88fc2 (patch)
tree63516a847fe50c6b153f806f40fc19f6c9d1f77c /gcc/gcc.cc
parentae2f70932225634d38f8ee21a5d9bdcc91296425 (diff)
downloadgcc-72a0554c7a269efeb6bb5462c3968f40fdf88fc2.zip
gcc-72a0554c7a269efeb6bb5462c3968f40fdf88fc2.tar.gz
gcc-72a0554c7a269efeb6bb5462c3968f40fdf88fc2.tar.bz2
gccrs: fix bug in pattern check for tuples
We can point to generic parent types which means we need to do the shallow resolve thing that rustc does. We have destructure which is similar to get what the parameter type points to. Fixes #2775 gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit): use destructure gcc/testsuite/ChangeLog: * rust/compile/issue-2775.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/gcc.cc')
0 files changed, 0 insertions, 0 deletions