Skip to content

Commit 27641c2

Browse files
committed
ir: Allow replacing enums.
1 parent eec4ae1 commit 27641c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ir/context.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,7 @@ impl BindgenContext {
10621062
match *ty.kind() {
10631063
TypeKind::Comp(..) |
10641064
TypeKind::TemplateAlias(..) |
1065+
TypeKind::Enum(..) |
10651066
TypeKind::Alias(..) => {}
10661067
_ => continue,
10671068
}
@@ -2065,7 +2066,7 @@ impl BindgenContext {
20652066

20662067
/// Has the item with the given `name` and `id` been replaced by another
20672068
/// type?
2068-
pub fn is_replaced_type<Id: Into<ItemId>>(&self, path: &[String], id: Id) -> bool {
2069+
fn is_replaced_type<Id: Into<ItemId>>(&self, path: &[String], id: Id) -> bool {
20692070
let id = id.into();
20702071
match self.replacements.get(path) {
20712072
Some(replaced_by) if *replaced_by != id => true,

0 commit comments

Comments
 (0)