Skip to content

Commit

Permalink
Document merge_generic_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Davies committed Jun 1, 2023
1 parent 61c6816 commit a9518c2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,16 @@ derive_tagged_enum_copy_assignment = false
# default: false
private_default_tagged_enum_constructor = false

# Whether to only output a single tag enum for generic tagged enums. This only
# applies when generics are being monomorphized (i.e. not C++).
#
# For example, an enum monomorph `COption<u8>` would normally generate a tag enum
# `COption_u8_Tag`, but with this option enabled all monomorphs of `COption<T>` will
# use the same tag enum, named `COption_Tag`.
#
# default: false
merge_generic_tags = false




Expand Down
1 change: 1 addition & 0 deletions template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ derive_tagged_enum_destructor = false
derive_tagged_enum_copy_constructor = false
enum_class = true
private_default_tagged_enum_constructor = false
merge_generic_tags = false



Expand Down

0 comments on commit a9518c2

Please sign in to comment.