Skip to content

Commit a50fb38

Browse files
committed
gccrs: Remove the template parameter so clang format stops barfing on this
Change this formatting, so clang format stops formatting this wierd for me. gcc/rust/ChangeLog: * typecheck/rust-tyty.cc (VariantDef::clone): remove template param (VariantDef::monomorphized_clone): likewise Signed-off-by: Philip Herron <[email protected]>
1 parent 2449174 commit a50fb38

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gcc/rust/typecheck/rust-tyty.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,8 +1661,7 @@ VariantDef::clone () const
16611661
cloned_fields.push_back ((StructFieldType *) f->clone ());
16621662

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

16681667
return new VariantDef (id, defid, identifier, ident, type,
@@ -1677,8 +1676,7 @@ VariantDef::monomorphized_clone () const
16771676
cloned_fields.push_back ((StructFieldType *) f->monomorphized_clone ());
16781677

16791678
auto discriminant_opt = has_discriminant ()
1680-
? tl::optional<std::unique_ptr<HIR::Expr>> (
1681-
get_discriminant ().clone_expr ())
1679+
? tl::optional (get_discriminant ().clone_expr ())
16821680
: tl::nullopt;
16831681

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

0 commit comments

Comments
 (0)