https://gcc.gnu.org/g:c2f1a0f497c168c3386f9f93afbfd942e21a4132
commit r16-4838-gc2f1a0f497c168c3386f9f93afbfd942e21a4132 Author: Philip Herron <[email protected]> Date: Fri Aug 29 18:08:56 2025 +0100 gccrs: Fix formatting of tyty code 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 <[email protected]> Diff: --- gcc/rust/typecheck/rust-tyty.cc | 4 ++-- gcc/rust/typecheck/rust-tyty.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/rust/typecheck/rust-tyty.cc b/gcc/rust/typecheck/rust-tyty.cc index a1e73786f4e7..15d4a5920591 100644 --- a/gcc/rust/typecheck/rust-tyty.cc +++ b/gcc/rust/typecheck/rust-tyty.cc @@ -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, diff --git a/gcc/rust/typecheck/rust-tyty.h b/gcc/rust/typecheck/rust-tyty.h index 6ba976034362..22aa28d6fe15 100644 --- a/gcc/rust/typecheck/rust-tyty.h +++ b/gcc/rust/typecheck/rust-tyty.h @@ -563,7 +563,7 @@ public: TypeBoundPredicate (const TypeBoundPredicate &other); - virtual ~TypeBoundPredicate () {}; + virtual ~TypeBoundPredicate () {} TypeBoundPredicate &operator= (const TypeBoundPredicate &other);
