summaryrefslogtreecommitdiff
path: root/libbindgen/src
diff options
context:
space:
mode:
Diffstat (limited to 'libbindgen/src')
-rw-r--r--libbindgen/src/ir/context.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbindgen/src/ir/context.rs b/libbindgen/src/ir/context.rs
index ebc7f10a..f832a5d2 100644
--- a/libbindgen/src/ir/context.rs
+++ b/libbindgen/src/ir/context.rs
@@ -947,6 +947,12 @@ impl<'ctx> BindgenContext<'ctx> {
return true;
}
+ // If this is a type that explicitly replaces another, we assume
+ // you know what you're doing.
+ if item.annotations().use_instead_of().is_some() {
+ return true;
+ }
+
let name = item.name(self).for_name_checking().get();
match *item.kind() {
ItemKind::Module(..) => true,