]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: fix clang formatting
authorPhilip Herron <herron.philip@googlemail.com>
Thu, 31 Jul 2025 16:26:14 +0000 (17:26 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:37:01 +0000 (16:37 +0200)
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.philip@googlemail.com>
gcc/rust/typecheck/rust-hir-type-check-expr.cc
gcc/rust/typecheck/rust-tyty-variance-analysis-private.h
gcc/rust/typecheck/rust-tyty.cc
gcc/rust/typecheck/rust-tyty.h

index 92912e835ad0049ca94b9dc2146c6c1906c09486..5bf8cc3bc1f826c38fccc55d547e0095ee0dd3de 100644 (file)
@@ -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
index f4dc860fb11256ef8ffa14c31ee1b34c9ae3b402..deb76a7246d1efe782b220c07db6a2fbbb626258 100644 (file)
@@ -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
index a87efb4e381595fef74893ba6e6cd51419d736aa..c5488fca500ee2d5646c4122ba1ebb9846ebb660 100644 (file)
@@ -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,
index 585062b0cb794ce256f73ab04a86679b53415882..8f37645b9eb0b1ecc8a38610a0ae904daa50aa6b 100644 (file)
@@ -590,7 +590,7 @@ public:
 
   TypeBoundPredicate (const TypeBoundPredicate &other);
 
-  virtual ~TypeBoundPredicate () {};
+  virtual ~TypeBoundPredicate (){};
 
   TypeBoundPredicate &operator= (const TypeBoundPredicate &other);