diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-10-13 11:06:24 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-10-16 12:12:17 +0200 |
commit | a467d3efc6f9fbe2e811468adbaa3687a9938b0d (patch) | |
tree | 72d373f43c3152d31ede0193aa62da35ea43c75d /tests/headers/enum.h | |
parent | e0961491034b243cc23c40619da732cd5680f4c6 (diff) |
codegen: Allow to not derive Debug on enums.
Fixes #1899.
This code predated all the derive machinery, and always hardcoded its
derives.
We could avoid hard-coding the other traits, but those seem
usually-useful, so leave them there for backwards compat for now.
Diffstat (limited to 'tests/headers/enum.h')
-rw-r--r-- | tests/headers/enum.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/headers/enum.h b/tests/headers/enum.h index 901b8058..8b41f855 100644 --- a/tests/headers/enum.h +++ b/tests/headers/enum.h @@ -17,3 +17,9 @@ enum Neg { MinusOne = -1, One = 1, }; + +/** <div rustbindgen nodebug></div> */ +enum NoDebug { + NoDebug1, + NoDebug2, +}; |