public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Support GroupedPattern during name resolution
@ 2023-01-26  7:26 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-01-26  7:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a194ee1dcbeae94735b279be7fa589cd5fa09bef

commit a194ee1dcbeae94735b279be7fa589cd5fa09bef
Author: Owen Avery <powerboat9.gamer@gmail.com>
Date:   Wed Jan 11 11:53:51 2023 -0500

    Support GroupedPattern during name resolution
    
    Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>

Diff:
---
 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 6e86c409250..5cebf088981 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-26  7:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26  7:26 [gcc/devel/rust/master] Support GroupedPattern during name resolution Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).