From bcfeb7200416347cf0c400cece7d6561206c46d4 Mon Sep 17 00:00:00 2001 From: CGMossa Date: Sun, 8 Oct 2023 00:13:57 +0200 Subject: [PATCH] Ignore constants (#185) * Clippy suggestions * These two now appears in warnings, as there are rust equivalent ones. * Update bindings [skip ci] * These two now appears in warnings, as there are rust equivalent ones. * Update bindings [skip ci] --------- Co-authored-by: CGMossa --- bindings/bindings-linux-aarch64-R4.2.rs | 2 -- bindings/bindings-linux-aarch64-R4.3.rs | 2 -- bindings/bindings-linux-aarch64-R4.4-devel.rs | 2 -- bindings/bindings-linux-x86_64-R4.2.rs | 2 -- bindings/bindings-linux-x86_64-R4.3.rs | 2 -- bindings/bindings-linux-x86_64-R4.4-devel.rs | 2 -- bindings/bindings-macos-aarch64-R4.3.rs | 2 -- bindings/bindings-macos-x86_64-R4.2.rs | 2 -- bindings/bindings-macos-x86_64-R4.3.rs | 2 -- bindings/bindings-macos-x86_64-R4.4-devel.rs | 2 -- bindings/bindings-windows-x86_64-R4.2.rs | 2 -- bindings/bindings-windows-x86_64-R4.3.rs | 2 -- bindings/bindings-windows-x86_64-R4.4-devel.rs | 2 -- build.rs | 4 +++- 14 files changed, 3 insertions(+), 27 deletions(-) diff --git a/bindings/bindings-linux-aarch64-R4.2.rs b/bindings/bindings-linux-aarch64-R4.2.rs index 3a40e59e..0c40d277 100644 --- a/bindings/bindings-linux-aarch64-R4.2.rs +++ b/bindings/bindings-linux-aarch64-R4.2.rs @@ -146,10 +146,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-linux-aarch64-R4.3.rs b/bindings/bindings-linux-aarch64-R4.3.rs index dd7de2e7..277c54ed 100644 --- a/bindings/bindings-linux-aarch64-R4.3.rs +++ b/bindings/bindings-linux-aarch64-R4.3.rs @@ -147,10 +147,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-linux-aarch64-R4.4-devel.rs b/bindings/bindings-linux-aarch64-R4.4-devel.rs index 0305d666..64034519 100644 --- a/bindings/bindings-linux-aarch64-R4.4-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.4-devel.rs @@ -147,10 +147,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-linux-x86_64-R4.2.rs b/bindings/bindings-linux-x86_64-R4.2.rs index 9e3925ce..817edb4a 100644 --- a/bindings/bindings-linux-x86_64-R4.2.rs +++ b/bindings/bindings-linux-x86_64-R4.2.rs @@ -146,10 +146,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-linux-x86_64-R4.3.rs b/bindings/bindings-linux-x86_64-R4.3.rs index a6eaadb8..cdbe9f62 100644 --- a/bindings/bindings-linux-x86_64-R4.3.rs +++ b/bindings/bindings-linux-x86_64-R4.3.rs @@ -147,10 +147,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-linux-x86_64-R4.4-devel.rs b/bindings/bindings-linux-x86_64-R4.4-devel.rs index 0aa46117..a7844500 100644 --- a/bindings/bindings-linux-x86_64-R4.4-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.4-devel.rs @@ -147,10 +147,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-macos-aarch64-R4.3.rs b/bindings/bindings-macos-aarch64-R4.3.rs index f1245aa3..4abe7c46 100644 --- a/bindings/bindings-macos-aarch64-R4.3.rs +++ b/bindings/bindings-macos-aarch64-R4.3.rs @@ -149,10 +149,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-macos-x86_64-R4.2.rs b/bindings/bindings-macos-x86_64-R4.2.rs index edb792eb..784bf473 100644 --- a/bindings/bindings-macos-x86_64-R4.2.rs +++ b/bindings/bindings-macos-x86_64-R4.2.rs @@ -148,10 +148,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-macos-x86_64-R4.3.rs b/bindings/bindings-macos-x86_64-R4.3.rs index 85f224f3..223ec11c 100644 --- a/bindings/bindings-macos-x86_64-R4.3.rs +++ b/bindings/bindings-macos-x86_64-R4.3.rs @@ -149,10 +149,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-macos-x86_64-R4.4-devel.rs b/bindings/bindings-macos-x86_64-R4.4-devel.rs index e1771660..0e5676cd 100644 --- a/bindings/bindings-macos-x86_64-R4.4-devel.rs +++ b/bindings/bindings-macos-x86_64-R4.4-devel.rs @@ -149,10 +149,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-windows-x86_64-R4.2.rs b/bindings/bindings-windows-x86_64-R4.2.rs index cddfbbd4..6757c3b6 100644 --- a/bindings/bindings-windows-x86_64-R4.2.rs +++ b/bindings/bindings-windows-x86_64-R4.2.rs @@ -65,10 +65,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-windows-x86_64-R4.3.rs b/bindings/bindings-windows-x86_64-R4.3.rs index c8ee0b87..0facca69 100644 --- a/bindings/bindings-windows-x86_64-R4.3.rs +++ b/bindings/bindings-windows-x86_64-R4.3.rs @@ -66,10 +66,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/bindings/bindings-windows-x86_64-R4.4-devel.rs b/bindings/bindings-windows-x86_64-R4.4-devel.rs index 0d953359..43c6c872 100644 --- a/bindings/bindings-windows-x86_64-R4.4-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.4-devel.rs @@ -66,10 +66,8 @@ pub const HAVE_EXPM1: u32 = 1; pub const HAVE_HYPOT: u32 = 1; pub const HAVE_LOG1P: u32 = 1; pub const HAVE_WORKING_LOG1P: u32 = 1; -pub const M_2PI: f64 = 6.283185307179586; pub const M_SQRT_3: f64 = 1.7320508075688772; pub const M_SQRT_32: f64 = 5.656854249492381; -pub const M_LOG10_2: f64 = 0.3010299956639812; pub const M_SQRT_PI: f64 = 1.772453850905516; pub const M_1_SQRT_2PI: f64 = 0.3989422804014327; pub const M_SQRT_2dPI: f64 = 0.7978845608028654; diff --git a/build.rs b/build.rs index 167db9ec..eee5c1b5 100644 --- a/build.rs +++ b/build.rs @@ -499,7 +499,9 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { .blocklist_item("M_2_PI") .blocklist_item("M_2_SQRTPI") .blocklist_item("M_SQRT2") - .blocklist_item("M_SQRT1_2"); + .blocklist_item("M_SQRT1_2") + .blocklist_item("M_2PI") + .blocklist_item("M_LOG10_2"); // `VECTOR_PTR` is deprecated, use `DATAPTR` and friends instead let bindgen_builder = bindgen_builder.blocklist_item("VECTOR_PTR");