diff options
-rw-r--r-- | bindgen_plugin/src/bgmacro.rs | 1 | ||||
-rwxr-xr-x | src/lib.rs | 7 |
2 files changed, 0 insertions, 8 deletions
diff --git a/bindgen_plugin/src/bgmacro.rs b/bindgen_plugin/src/bgmacro.rs index eebc56e6..30ebaaea 100644 --- a/bindgen_plugin/src/bgmacro.rs +++ b/bindgen_plugin/src/bgmacro.rs @@ -115,7 +115,6 @@ impl MacroArgsVisitor for BindgenArgsVisitor { fn visit_bool(&mut self, name: Option<&str>, val: bool) -> bool { if name.is_some() { self.seen_named = true; } match name { - Some("allow_unknown_types") => self.options.fail_on_unknown_type = !val, Some("emit_builtins") => self.options.builtins = val, _ => return false } @@ -109,11 +109,6 @@ impl Builder { self } - pub fn forbid_unknown_types(mut self) -> Builder { - self.options.fail_on_unknown_type = true; - self - } - pub fn emit_builtins(mut self) -> Builder { self.options.builtins = true; self @@ -163,7 +158,6 @@ pub struct BindgenOptions { pub ignore_functions: bool, pub ignore_methods: bool, pub gen_bitfield_methods: bool, - pub fail_on_unknown_type: bool, pub enable_cxx_namespaces: bool, pub rename_types: bool, pub derive_debug: bool, @@ -195,7 +189,6 @@ impl Default for BindgenOptions { ignore_functions: false, ignore_methods: false, gen_bitfield_methods: true, - fail_on_unknown_type: true, rename_types: true, derive_debug: true, enable_cxx_namespaces: false, |