public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] typectx: Mark lookup_type() method as const
@ 2022-06-08 12:29 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:29 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:415586f0e22684dc7e73a2f4d6c0ec66ea42b3a4

commit 415586f0e22684dc7e73a2f4d6c0ec66ea42b3a4
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Tue Apr 12 10:39:32 2022 +0200

    typectx: Mark lookup_type() method as const

Diff:
---
 gcc/rust/typecheck/rust-hir-type-check.h | 2 +-
 gcc/rust/typecheck/rust-tyctx.cc         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/rust/typecheck/rust-hir-type-check.h b/gcc/rust/typecheck/rust-hir-type-check.h
index e63ef9fa26b..e63f8ad4b03 100644
--- a/gcc/rust/typecheck/rust-hir-type-check.h
+++ b/gcc/rust/typecheck/rust-hir-type-check.h
@@ -104,7 +104,7 @@ public:
   void insert_type (const Analysis::NodeMapping &mappings,
 		    TyTy::BaseType *type);
   void insert_implicit_type (TyTy::BaseType *type);
-  bool lookup_type (HirId id, TyTy::BaseType **type);
+  bool lookup_type (HirId id, TyTy::BaseType **type) const;
 
   void insert_implicit_type (HirId id, TyTy::BaseType *type);
 
diff --git a/gcc/rust/typecheck/rust-tyctx.cc b/gcc/rust/typecheck/rust-tyctx.cc
index 434809c1e08..d8a49e8b9ea 100644
--- a/gcc/rust/typecheck/rust-tyctx.cc
+++ b/gcc/rust/typecheck/rust-tyctx.cc
@@ -98,7 +98,7 @@ TypeCheckContext::insert_implicit_type (HirId id, TyTy::BaseType *type)
 }
 
 bool
-TypeCheckContext::lookup_type (HirId id, TyTy::BaseType **type)
+TypeCheckContext::lookup_type (HirId id, TyTy::BaseType **type) const
 {
   auto it = resolved.find (id);
   if (it == resolved.end ())


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

only message in thread, other threads:[~2022-06-08 12:29 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:29 [gcc/devel/rust/master] typectx: Mark lookup_type() method as const 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).