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] Add missing abstract method HIR::Pattern::get_locus() const
Date: Wed,  8 Jun 2022 11:57:35 +0000 (GMT)	[thread overview]
Message-ID: <20220608115735.3DE6A3AA88BB@sourceware.org> (raw)

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

commit cd1814f927017dbe2618078f3574c37586831659
Author: Philip Herron <philip.herron@embecosm.com>
Date:   Thu Dec 16 13:53:57 2021 +0000

    Add missing abstract method HIR::Pattern::get_locus() const

Diff:
---
 gcc/rust/hir/tree/rust-hir-pattern.h | 2 ++
 gcc/rust/hir/tree/rust-hir.h         | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/gcc/rust/hir/tree/rust-hir-pattern.h b/gcc/rust/hir/tree/rust-hir-pattern.h
index fd4960fd233..3d0dd52edab 100644
--- a/gcc/rust/hir/tree/rust-hir-pattern.h
+++ b/gcc/rust/hir/tree/rust-hir-pattern.h
@@ -404,6 +404,8 @@ public:
     return mappings;
   }
 
+  Location get_locus () const override final { return locus; }
+
 protected:
   /* Use covariance to implement clone function as returning this object rather
    * than base */
diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h
index 8b5f3bb2dea..b7abe67facf 100644
--- a/gcc/rust/hir/tree/rust-hir.h
+++ b/gcc/rust/hir/tree/rust-hir.h
@@ -330,6 +330,8 @@ public:
 
   virtual Analysis::NodeMapping get_pattern_mappings () const = 0;
 
+  virtual Location get_locus () const = 0;
+
 protected:
   // Clone pattern implementation as pure virtual method
   virtual Pattern *clone_pattern_impl () const = 0;


                 reply	other threads:[~2022-06-08 11:57 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=20220608115735.3DE6A3AA88BB@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: link
Be 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).