diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-10 14:02:49 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-01-11 12:05:55 +0100 |
commit | fee7e96875f1d7c805a09e8ec8e02988de25e370 (patch) | |
tree | 176df35822e5e93cf4b83e914cf2edd862cff794 /libbindgen/tests | |
parent | d5cd85d1a1ab2368a3dc8443ee5969e66aabc8ad (diff) |
ir: Support hiding enum variants.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
Diffstat (limited to 'libbindgen/tests')
-rw-r--r-- | libbindgen/tests/expectations/tests/constify-enum.rs | 2 | ||||
-rw-r--r-- | libbindgen/tests/headers/constify-enum.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/libbindgen/tests/expectations/tests/constify-enum.rs b/libbindgen/tests/expectations/tests/constify-enum.rs index 356aaa05..989c5197 100644 --- a/libbindgen/tests/expectations/tests/constify-enum.rs +++ b/libbindgen/tests/expectations/tests/constify-enum.rs @@ -9,8 +9,6 @@ pub const nsCSSPropertyID_eCSSProperty_COUNT_unexistingVariantValue: nsCSSPropertyID::eCSSProperty_COUNT_unexistingVariantValue; pub const nsCSSPropertyID_eCSSProperty_COUNT: nsCSSPropertyID = nsCSSPropertyID::eCSSPropertyAlias_aa; -pub const nsCSSPropertyID_eCSSProperty_COUNT_DUMMY2: nsCSSPropertyID = - nsCSSPropertyID::eCSSProperty_b; #[repr(u32)] #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub enum nsCSSPropertyID { diff --git a/libbindgen/tests/headers/constify-enum.h b/libbindgen/tests/headers/constify-enum.h index f2771e59..a5b4052c 100644 --- a/libbindgen/tests/headers/constify-enum.h +++ b/libbindgen/tests/headers/constify-enum.h @@ -4,7 +4,7 @@ enum nsCSSPropertyID { eCSSProperty_b, eCSSProperty_COUNT, /**< <div rustbindgen constant></div> */ - eCSSProperty_COUNT_DUMMY2 = eCSSProperty_COUNT - 1, /**< <div rustbindgen constant></div> */ + eCSSProperty_COUNT_DUMMY2 = eCSSProperty_COUNT - 1, /**< <div rustbindgen hide></div> */ eCSSPropertyAlias_aa, eCSSPropertyAlias_bb, |