summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-03-04 14:22:04 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-03-04 14:22:04 +0100
commit27641c23c6ad6f0c9e51494a2afdf5245c7090d9 (patch)
treee5818a9f64f920956acc93113a0d6e2635f67455
parenteec4ae1ce2438e2f82773b1f4d199072cb2214e7 (diff)
ir: Allow replacing enums.
-rw-r--r--src/ir/context.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs
index 0a914523..d1bb8142 100644
--- a/src/ir/context.rs
+++ b/src/ir/context.rs
@@ -1062,6 +1062,7 @@ impl BindgenContext {
match *ty.kind() {
TypeKind::Comp(..) |
TypeKind::TemplateAlias(..) |
+ TypeKind::Enum(..) |
TypeKind::Alias(..) => {}
_ => continue,
}
@@ -2065,7 +2066,7 @@ impl BindgenContext {
/// Has the item with the given `name` and `id` been replaced by another
/// type?
- pub fn is_replaced_type<Id: Into<ItemId>>(&self, path: &[String], id: Id) -> bool {
+ fn is_replaced_type<Id: Into<ItemId>>(&self, path: &[String], id: Id) -> bool {
let id = id.into();
match self.replacements.get(path) {
Some(replaced_by) if *replaced_by != id => true,