diff --git a/bindgen-tests/tests/tests.rs b/bindgen-tests/tests/tests.rs index 0e15155d92..c096b2e81e 100644 --- a/bindgen-tests/tests/tests.rs +++ b/bindgen-tests/tests/tests.rs @@ -654,7 +654,7 @@ fn build_flags_output_helper(builder: &bindgen::Builder) { let flags_quoted: Vec = command_line_flags .iter() - .map(|x| format!("{}", shlex::quote(x))) + .map(|x| format!("{}", shlex::try_quote(x).unwrap())) .collect(); let flags_str = flags_quoted.join(" "); println!("{}", flags_str); diff --git a/bindgen/ir/item.rs b/bindgen/ir/item.rs index 2941eb81e2..4eb9ef8bf4 100644 --- a/bindgen/ir/item.rs +++ b/bindgen/ir/item.rs @@ -85,12 +85,6 @@ pub(crate) trait HasTypeParamInArray { fn has_type_param_in_array(&self, ctx: &BindgenContext) -> bool; } -/// A trait for determining if some IR thing has float or not. -pub(crate) trait HasFloat { - /// Returns `true` if the thing has float, and `false` otherwise. - fn has_float(&self, ctx: &BindgenContext) -> bool; -} - /// A trait for iterating over an item and its parents and up its ancestor chain /// up to (but not including) the implicit root module. pub(crate) trait ItemAncestors { @@ -1203,29 +1197,6 @@ impl HasTypeParamInArray for Item { } } -impl HasFloat for T -where - T: Copy + Into, -{ - fn has_float(&self, ctx: &BindgenContext) -> bool { - debug_assert!( - ctx.in_codegen_phase(), - "You're not supposed to call this yet" - ); - ctx.lookup_has_float(*self) - } -} - -impl HasFloat for Item { - fn has_float(&self, ctx: &BindgenContext) -> bool { - debug_assert!( - ctx.in_codegen_phase(), - "You're not supposed to call this yet" - ); - ctx.lookup_has_float(self.id()) - } -} - /// A set of items. pub(crate) type ItemSet = BTreeSet;