From: Owen Avery <powerboat9.ga...@gmail.com> gcc/rust/ChangeLog:
* resolve/rust-ast-resolve-pattern.h: Support GroupedPattern properly. Signed-off-by: Owen Avery <powerboat9.ga...@gmail.com> --- gcc/rust/resolve/rust-ast-resolve-pattern.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/rust/resolve/rust-ast-resolve-pattern.h b/gcc/rust/resolve/rust-ast-resolve-pattern.h index 5f2b7293cf2..3e74f0a4cc6 100644 --- a/gcc/rust/resolve/rust-ast-resolve-pattern.h +++ b/gcc/rust/resolve/rust-ast-resolve-pattern.h @@ -77,6 +77,11 @@ public: pattern.get_node_id (), pattern.get_locus (), type); } + void visit (AST::GroupedPattern &pattern) override + { + pattern.get_pattern_in_parens ()->accept_vis (*this); + } + // cases in a match expression void visit (AST::PathInExpression &pattern) override; -- 2.40.0