https://gcc.gnu.org/g:1e7a193af1f6d22e652bc3d54b2d78bdb96fbce0

commit r16-2987-g1e7a193af1f6d22e652bc3d54b2d78bdb96fbce0
Author: Philip Herron <herron.phi...@googlemail.com>
Date:   Thu Jul 31 17:26:14 2025 +0100

    gccrs: fix clang formatting
    
    gcc/rust/ChangeLog:
    
            * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): 
formatting
            * typecheck/rust-tyty-variance-analysis-private.h: likewise
            * typecheck/rust-tyty.cc (VariantDef::clone): likewise
            (VariantDef::monomorphized_clone): likewise
            * typecheck/rust-tyty.h: likewise
    
    Signed-off-by: Philip Herron <herron.phi...@googlemail.com>

Diff:
---
 gcc/rust/typecheck/rust-hir-type-check-expr.cc           | 2 +-
 gcc/rust/typecheck/rust-tyty-variance-analysis-private.h | 2 +-
 gcc/rust/typecheck/rust-tyty.cc                          | 4 ++--
 gcc/rust/typecheck/rust-tyty.h                           | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/rust/typecheck/rust-hir-type-check-expr.cc 
b/gcc/rust/typecheck/rust-hir-type-check-expr.cc
index 92912e835ad0..5bf8cc3bc1f8 100644
--- a/gcc/rust/typecheck/rust-hir-type-check-expr.cc
+++ b/gcc/rust/typecheck/rust-hir-type-check-expr.cc
@@ -1802,7 +1802,7 @@ TypeCheckExpr::visit (HIR::ClosureExpr &expr)
   TyTy::TyVar result_type
     = expr.has_return_type ()
        ? TyTy::TyVar (
-           TypeCheckType::Resolve (expr.get_return_type ())->get_ref ())
+         TypeCheckType::Resolve (expr.get_return_type ())->get_ref ())
        : TyTy::TyVar::get_implicit_infer_var (expr.get_locus ());
 
   // resolve the block
diff --git a/gcc/rust/typecheck/rust-tyty-variance-analysis-private.h 
b/gcc/rust/typecheck/rust-tyty-variance-analysis-private.h
index f4dc860fb112..deb76a7246d1 100644
--- a/gcc/rust/typecheck/rust-tyty-variance-analysis-private.h
+++ b/gcc/rust/typecheck/rust-tyty-variance-analysis-private.h
@@ -324,7 +324,7 @@ public:
                                    Variance variance) override;
   void add_constraints_from_generic_args (HirId ref, SubstitutionRef &subst,
                                          Variance variance,
-                                         bool invariant_args) override {};
+                                         bool invariant_args) override{};
   void add_constrints_from_param (ParamType &param, Variance variance) 
override;
 
   Variance contra (Variance variance) override
diff --git a/gcc/rust/typecheck/rust-tyty.cc b/gcc/rust/typecheck/rust-tyty.cc
index a87efb4e3815..c5488fca500e 100644
--- a/gcc/rust/typecheck/rust-tyty.cc
+++ b/gcc/rust/typecheck/rust-tyty.cc
@@ -1704,7 +1704,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,
@@ -1720,7 +1720,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,
diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h
index 585062b0cb79..8f37645b9eb0 100644
--- a/gcc/rust/typecheck/rust-tyty.h
+++ b/gcc/rust/typecheck/rust-tyty.h
@@ -590,7 +590,7 @@ public:
 
   TypeBoundPredicate (const TypeBoundPredicate &other);
 
-  virtual ~TypeBoundPredicate () {};
+  virtual ~TypeBoundPredicate (){};
 
   TypeBoundPredicate &operator= (const TypeBoundPredicate &other);

Reply via email to