aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2024-02-04 17:07:05 +0000
committerPhilip Herron <philip.herron@embecosm.com>2024-02-05 01:57:04 +0000
commit38af9fef52e716ca38cf182a9d86ff49953a586f (patch)
tree21b517dd6831f7180243f9ce41843f93a5fda55e /libcpp
parente2cb2a7f0251bc30fd687ffb4050e54144c23862 (diff)
downloadgcc-38af9fef52e716ca38cf182a9d86ff49953a586f.zip
gcc-38af9fef52e716ca38cf182a9d86ff49953a586f.tar.gz
gcc-38af9fef52e716ca38cf182a9d86ff49953a586f.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 'libcpp')
0 files changed, 0 insertions, 0 deletions