Bug 1945218 - [1/1] silence unused HasFloat warning r=glandium

This will go away once we update to bindgen 0.70 or greater. For now,
though, slap an `#[allow(dead_code)]` on it to get rid of the warning.

Differential Revision: https://phabricator.services.mozilla.com/D236239
This commit is contained in:
Ray Kraesig
2025-02-05 23:03:55 +00:00
parent 0d5e36db3f
commit 431bd3e287
2 changed files with 2 additions and 0 deletions

View File

@@ -153,6 +153,7 @@ backtrace = { path = "build/rust/backtrace" }
# Patch bindgen 0.63 to 0.69
bindgen_0_63 = { package = "bindgen", path = "build/rust/bindgen-0.63" }
# Locally patch bindgen for https://github.com/rust-lang/rust-bindgen/pull/2824
# and for bug 1945218
bindgen = { path = "third_party/rust/bindgen" }
# Patch nix 0.26 to 0.29

View File

@@ -85,6 +85,7 @@ pub(crate) trait HasTypeParamInArray {
fn has_type_param_in_array(&self, ctx: &BindgenContext) -> bool;
}
#[allow(dead_code)]
/// 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.