public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] privacy: ModuleVis: Constify accessor functions
@ 2022-06-08 12:35 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:35 UTC (permalink / raw)
  To: gcc-cvs

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

commit bdd1b86ccb87d942a24dd60c01736e439ad57087
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Fri Apr 22 13:46:46 2022 +0200

    privacy: ModuleVis: Constify accessor functions
    
    Co-authored-by: philberty <philip.herron@embecosm.com>

Diff:
---
 gcc/rust/privacy/rust-privacy-common.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/rust/privacy/rust-privacy-common.h b/gcc/rust/privacy/rust-privacy-common.h
index a94d3c80b4d..145eac73ac9 100644
--- a/gcc/rust/privacy/rust-privacy-common.h
+++ b/gcc/rust/privacy/rust-privacy-common.h
@@ -48,9 +48,9 @@ public:
     return ModuleVisibility (Type::Public, UNKNOWN_DEFID);
   }
 
-  Type get_kind () { return kind; }
+  Type get_kind () const { return kind; }
 
-  DefId &get_module_id () { return module_id; }
+  const DefId &get_module_id () const { return module_id; }
 
 private:
   ModuleVisibility (Type kind, DefId module_id)


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

only message in thread, other threads:[~2022-06-08 12:35 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:35 [gcc/devel/rust/master] privacy: ModuleVis: Constify accessor functions 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).