aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.h
diff options
context:
space:
mode:
authorNikos Alexandris <nikos-alexandris@protonmail.com>2023-03-03 23:55:59 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:21:08 +0100
commitb0416339c07bb583a96d3a3fa7ec375b3de6d8a1 (patch)
tree2f8e15c348fc6064095fbc15113c2532829bb4e1 /gcc/rust/backend/rust-compile-resolve-path.h
parent29fed556263557d0a933d55159d2f434f43e2c8f (diff)
downloadgcc-b0416339c07bb583a96d3a3fa7ec375b3de6d8a1.zip
gcc-b0416339c07bb583a96d3a3fa7ec375b3de6d8a1.tar.gz
gcc-b0416339c07bb583a96d3a3fa7ec375b3de6d8a1.tar.bz2
gccrs: Add length checking for tuple patterns
gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit): Add length checking for tuple patterns. (TypeCheckPattern::emit_pattern_size_error): New function. * typecheck/rust-hir-type-check-pattern.h: New function emit_pattern_size_error. gcc/testsuite/ChangeLog: * rust/compile/tuple_mismatch.rs: New test. Signed-off-by: Nikos Alexandris <nikos-alexandris@protonmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.h')
0 files changed, 0 insertions, 0 deletions