public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] Support GroupedPattern during name resolution Date: Thu, 26 Jan 2023 07:26:57 +0000 (GMT) [thread overview] Message-ID: <20230126072657.50CB63858D38@sourceware.org> (raw) 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;
reply other threads:[~2023-01-26 7:26 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230126072657.50CB63858D38@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).