public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Add name resolution to AST::SliceType
@ 2022-06-08 12:09 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:09 UTC (permalink / raw)
  To: gcc-cvs

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

commit de08987dc79dabed17b5e287e76f8d623cbfa34e
Author: Philip Herron <philip.herron@embecosm.com>
Date:   Fri Feb 18 12:55:14 2022 +0000

    Add name resolution to AST::SliceType

Diff:
---
 gcc/rust/resolve/rust-ast-resolve-type.cc | 6 ++++++
 gcc/rust/resolve/rust-ast-resolve-type.h  | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/gcc/rust/resolve/rust-ast-resolve-type.cc b/gcc/rust/resolve/rust-ast-resolve-type.cc
index 271c6fa775c..252d1cae8aa 100644
--- a/gcc/rust/resolve/rust-ast-resolve-type.cc
+++ b/gcc/rust/resolve/rust-ast-resolve-type.cc
@@ -197,5 +197,11 @@ ResolveType::visit (AST::InferredType &type)
   ok = true;
 }
 
+void
+ResolveType::visit (AST::SliceType &type)
+{
+  type.get_elem_type ()->accept_vis (*this);
+}
+
 } // namespace Resolver
 } // namespace Rust
diff --git a/gcc/rust/resolve/rust-ast-resolve-type.h b/gcc/rust/resolve/rust-ast-resolve-type.h
index 2649e12bdaa..d835e00c77c 100644
--- a/gcc/rust/resolve/rust-ast-resolve-type.h
+++ b/gcc/rust/resolve/rust-ast-resolve-type.h
@@ -392,6 +392,8 @@ public:
 
   void visit (AST::TraitObjectType &type) override;
 
+  void visit (AST::SliceType &type) override;
+
 private:
   ResolveType (NodeId parent, bool canonicalize_type_with_generics,
 	       CanonicalPath *canonical_path)


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

only message in thread, other threads:[~2022-06-08 12:09 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:09 [gcc/devel/rust/master] Add name resolution to AST::SliceType 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).