public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] move resolve-item functions into their associated file
@ 2022-06-29 10:27 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-29 10:27 UTC (permalink / raw)
  To: gcc-cvs

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

commit c31bffa99b1a7007572637228bd99c00362ae597
Author: Philip Herron <philip.herron@embecosm.com>
Date:   Mon Jun 27 12:54:16 2022 +0100

    move resolve-item functions into their associated file

Diff:
---
 gcc/rust/resolve/rust-ast-resolve-item.cc | 23 +++++++++++++++++++++++
 gcc/rust/resolve/rust-ast-resolve.cc      | 24 ------------------------
 2 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/gcc/rust/resolve/rust-ast-resolve-item.cc b/gcc/rust/resolve/rust-ast-resolve-item.cc
index 6c81274b1bd..5a21d570d83 100644
--- a/gcc/rust/resolve/rust-ast-resolve-item.cc
+++ b/gcc/rust/resolve/rust-ast-resolve-item.cc
@@ -914,6 +914,28 @@ ResolveItem::visit (AST::ExternBlock &extern_block)
     }
 }
 
+void
+ResolveItem::resolve_impl_item (AST::TraitImplItem *item,
+				const CanonicalPath &prefix,
+				const CanonicalPath &canonical_prefix)
+{
+  ResolveImplItems::go (item, prefix, canonical_prefix);
+}
+
+void
+ResolveItem::resolve_impl_item (AST::InherentImplItem *item,
+				const CanonicalPath &prefix,
+				const CanonicalPath &canonical_prefix)
+{
+  ResolveImplItems::go (item, prefix, canonical_prefix);
+}
+
+void
+ResolveItem::resolve_extern_item (AST::ExternalItem *item)
+{
+  ResolveExternItem::go (item);
+}
+
 static void
 flatten_glob (const AST::UseTreeGlob &glob,
 	      std::vector<AST::SimplePath> &paths);
@@ -1296,6 +1318,7 @@ rust_simple_path_resolve_test (void)
 {
   rust_use_dec_flattening ();
 }
+
 } // namespace selftest
 
 #endif // CHECKING_P
diff --git a/gcc/rust/resolve/rust-ast-resolve.cc b/gcc/rust/resolve/rust-ast-resolve.cc
index 3a3dedad214..ff042bc95ea 100644
--- a/gcc/rust/resolve/rust-ast-resolve.cc
+++ b/gcc/rust/resolve/rust-ast-resolve.cc
@@ -111,30 +111,6 @@ NameResolution::go (AST::Crate &crate)
   resolver->pop_module_scope ();
 }
 
-// rust-ast-resolve-item.h
-
-void
-ResolveItem::resolve_impl_item (AST::TraitImplItem *item,
-				const CanonicalPath &prefix,
-				const CanonicalPath &canonical_prefix)
-{
-  ResolveImplItems::go (item, prefix, canonical_prefix);
-}
-
-void
-ResolveItem::resolve_impl_item (AST::InherentImplItem *item,
-				const CanonicalPath &prefix,
-				const CanonicalPath &canonical_prefix)
-{
-  ResolveImplItems::go (item, prefix, canonical_prefix);
-}
-
-void
-ResolveItem::resolve_extern_item (AST::ExternalItem *item)
-{
-  ResolveExternItem::go (item);
-}
-
 // qualified path in type
 
 bool


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 10:27 [gcc/devel/rust/master] move resolve-item functions into their associated file 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).