public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Add missing const for get_locus and helper to get used arguments
@ 2022-06-08 12:27 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:27 UTC (permalink / raw)
  To: gcc-cvs

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

commit e7e6527975d2872c6e928dca6912604b021715cb
Author: Philip Herron <philip.herron@embecosm.com>
Date:   Wed Mar 30 14:56:00 2022 +0100

    Add missing const for get_locus and helper to get used arguments

Diff:
---
 gcc/rust/typecheck/rust-tyty.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h
index 58b5042c34a..6ddc05dba50 100644
--- a/gcc/rust/typecheck/rust-tyty.h
+++ b/gcc/rust/typecheck/rust-tyty.h
@@ -717,7 +717,7 @@ public:
     return true;
   }
 
-  Location get_locus () { return locus; }
+  Location get_locus () const { return locus; }
 
   size_t size () const { return mappings.size (); }
 
@@ -947,6 +947,11 @@ public:
   virtual BaseType *handle_substitions (SubstitutionArgumentMappings mappings)
     = 0;
 
+  SubstitutionArgumentMappings get_used_arguments () const
+  {
+    return used_arguments;
+  }
+
 protected:
   std::vector<SubstitutionParamMapping> substitutions;
   SubstitutionArgumentMappings used_arguments;


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

only message in thread, other threads:[~2022-06-08 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:27 [gcc/devel/rust/master] Add missing const for get_locus and helper to get used arguments 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).