From 5fef33baa16b4ac76b436e2468e1ff6d2e2d05a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Wed, 12 Jul 2023 10:57:10 +0200 Subject: [PATCH 1/2] fix: warn on fuzzy provenance casts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index 0e8992a1ac..c5f0847793 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,7 @@ #![warn(unsafe_op_in_unsafe_fn)] #![warn(clippy::uninlined_format_args)] #![warn(clippy::transmute_ptr_to_ptr)] +#![warn(fuzzy_provenance_casts)] #![allow(clippy::missing_safety_doc)] #![cfg_attr( any(target_arch = "aarch64", target_arch = "riscv64"), From 3aa7b62265f4ffed8b55c6c6616cd263817f329c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Wed, 12 Jul 2023 10:57:50 +0200 Subject: [PATCH 2/2] fix: warn on lossy provenance casts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index c5f0847793..edb34e4b2c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,7 @@ #![warn(clippy::uninlined_format_args)] #![warn(clippy::transmute_ptr_to_ptr)] #![warn(fuzzy_provenance_casts)] +#![warn(lossy_provenance_casts)] #![allow(clippy::missing_safety_doc)] #![cfg_attr( any(target_arch = "aarch64", target_arch = "riscv64"),