]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fix formatting of tyty code
authorPhilip Herron <herron.philip@googlemail.com>
Fri, 29 Aug 2025 17:08:56 +0000 (18:08 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:59:02 +0000 (20:59 +0100)
gcc/rust/ChangeLog:

* typecheck/rust-tyty.cc (VariantDef::clone): fix formatting
(VariantDef::monomorphized_clone): likewise
* typecheck/rust-tyty.h: likewise

Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/typecheck/rust-tyty.cc
gcc/rust/typecheck/rust-tyty.h

index a1e73786f4e7a31871446107d7a86e35e2729776..15d4a5920591a3c8f8e0aef55768a984df459629 100644 (file)
@@ -1662,7 +1662,7 @@ VariantDef::clone () const
 
   auto &&discriminant_opt = has_discriminant ()
                              ? tl::optional<std::unique_ptr<HIR::Expr>> (
-                                 get_discriminant ().clone_expr ())
+                               get_discriminant ().clone_expr ())
                              : tl::nullopt;
 
   return new VariantDef (id, defid, identifier, ident, type,
@@ -1678,7 +1678,7 @@ VariantDef::monomorphized_clone () const
 
   auto discriminant_opt = has_discriminant ()
                            ? tl::optional<std::unique_ptr<HIR::Expr>> (
-                               get_discriminant ().clone_expr ())
+                             get_discriminant ().clone_expr ())
                            : tl::nullopt;
 
   return new VariantDef (id, defid, identifier, ident, type,
index 6ba976034362d923d8f59972b43c756a8515c35c..22aa28d6fe15174f2dbf7348f047593d8b00ada4 100644 (file)
@@ -563,7 +563,7 @@ public:
 
   TypeBoundPredicate (const TypeBoundPredicate &other);
 
-  virtual ~TypeBoundPredicate () {};
+  virtual ~TypeBoundPredicate () {}
 
   TypeBoundPredicate &operator= (const TypeBoundPredicate &other);