diff options
-rw-r--r-- | src/ir/context.rs | 3 |
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, |