public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] gccrs: group basetype virtuals together and remove unused virtual
@ 2023-03-20  7:23 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-03-20  7:23 UTC (permalink / raw)
  To: gcc-cvs

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

commit bab564903706658ce8fa3704b656eeb1dce53330
Author: Philip Herron <herron.philip@googlemail.com>
Date:   Fri Mar 10 18:08:18 2023 +0000

    gccrs: group basetype virtuals together and remove unused virtual
    
    gcc/rust/ChangeLog:
    
            * typecheck/rust-tyty.h: cleanup ordering of header
    
    Signed-off-by: Philip Herron <herron.philip@googlemail.com>

Diff:
---
 gcc/rust/typecheck/rust-tyty.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h
index ce17c18fcab..dfc02a91126 100644
--- a/gcc/rust/typecheck/rust-tyty.h
+++ b/gcc/rust/typecheck/rust-tyty.h
@@ -131,10 +131,6 @@ public:
   // return the type-kind
   TypeKind get_kind () const;
 
-  /* Returns a pointer to a clone of this. The caller is responsible for
-   * releasing the memory of the returned ty. */
-  virtual BaseType *clone () const = 0;
-
   // monomorphized clone is a clone which destructures the types to get rid of
   // generics
   BaseType *monomorphized_clone () const;
@@ -144,13 +140,7 @@ public:
 
   void append_reference (HirId id);
 
-  virtual bool supports_substitutions () const;
-
-  virtual bool has_subsititions_defined () const;
-
-  virtual bool can_substitute () const;
-
-  virtual bool needs_generic_substitutions () const;
+  bool can_substitute () const;
 
   bool contains_type_parameters () const;
 
@@ -172,6 +162,16 @@ public:
 
   Location get_locus () const;
 
+  /* Returns a pointer to a clone of this. The caller is responsible for
+   * releasing the memory of the returned ty. */
+  virtual BaseType *clone () const = 0;
+
+  virtual bool supports_substitutions () const;
+
+  virtual bool has_subsititions_defined () const;
+
+  virtual bool needs_generic_substitutions () const;
+
 protected:
   BaseType (HirId ref, HirId ty_ref, TypeKind kind, RustIdent ident,
 	    std::set<HirId> refs = std::set<HirId> ());

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

only message in thread, other threads:[~2023-03-20  7:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20  7:23 [gcc/devel/rust/master] gccrs: group basetype virtuals together and remove unused virtual 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).