diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2016-10-24 12:35:24 -0700 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2016-10-24 12:35:24 -0700 |
commit | a9b82194f69aec1c9ba57f140579a63650806158 (patch) | |
tree | 1858822d6a5d46b232f628e59770356433cd4307 | |
parent | 9b227c81c7e92f612910fa0492346c0ef35a44a0 (diff) |
Remove the unused fail_on_unknown_type option
-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, |