Skip to content

Commit d2b6b01

Browse files
committed
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]>
1 parent e3c1fae commit d2b6b01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gcc/rust/typecheck/rust-tyty.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ VariantDef::clone () const
16621662

16631663
auto &&discriminant_opt = has_discriminant ()
16641664
? tl::optional<std::unique_ptr<HIR::Expr>> (
1665-
get_discriminant ().clone_expr ())
1665+
get_discriminant ().clone_expr ())
16661666
: tl::nullopt;
16671667

16681668
return new VariantDef (id, defid, identifier, ident, type,
@@ -1678,7 +1678,7 @@ VariantDef::monomorphized_clone () const
16781678

16791679
auto discriminant_opt = has_discriminant ()
16801680
? tl::optional<std::unique_ptr<HIR::Expr>> (
1681-
get_discriminant ().clone_expr ())
1681+
get_discriminant ().clone_expr ())
16821682
: tl::nullopt;
16831683

16841684
return new VariantDef (id, defid, identifier, ident, type,

gcc/rust/typecheck/rust-tyty.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ class TypeBoundPredicate : public SubstitutionRef
563563

564564
TypeBoundPredicate (const TypeBoundPredicate &other);
565565

566-
virtual ~TypeBoundPredicate () {};
566+
virtual ~TypeBoundPredicate () {}
567567

568568
TypeBoundPredicate &operator= (const TypeBoundPredicate &other);
569569

0 commit comments

Comments
 (0)