From a9ebe8ce70b21277fe2f5ae17178534f8c80f6d5 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 5 Apr 2024 11:48:08 +0200 Subject: [PATCH] Drop deny(warnings) from doctests to fix building with recent Rust --- 0001-drop-deny-warnings-from-doctests.patch | 25 +++++++++++++++++++++ rust-rand_core0.5.spec | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 0001-drop-deny-warnings-from-doctests.patch diff --git a/0001-drop-deny-warnings-from-doctests.patch b/0001-drop-deny-warnings-from-doctests.patch new file mode 100644 index 0000000..512bff1 --- /dev/null +++ b/0001-drop-deny-warnings-from-doctests.patch @@ -0,0 +1,25 @@ +From 9ee8a863e25f421632736b0b492a0e635aada558 Mon Sep 17 00:00:00 2001 +From: Fabio Valentini +Date: Fri, 5 Apr 2024 11:47:26 +0200 +Subject: [PATCH] drop deny(warnings) from doctests + +--- + src/lib.rs | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib.rs b/src/lib.rs +index d8e0189..03f66f9 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -33,7 +33,7 @@ + + #![deny(missing_docs)] + #![deny(missing_debug_implementations)] +-#![doc(test(attr(allow(unused_variables), deny(warnings))))] ++#![doc(test(attr(allow(unused_variables))))] + + #![allow(clippy::unreadable_literal)] + +-- +2.44.0 + diff --git a/rust-rand_core0.5.spec b/rust-rand_core0.5.spec index 717e16e..a275da8 100644 --- a/rust-rand_core0.5.spec +++ b/rust-rand_core0.5.spec @@ -12,6 +12,8 @@ Summary: Core random number generator traits and tools for implementation License: MIT OR Apache-2.0 URL: https://crates.io/crates/rand_core Source: %{crates_source} +# drop deny(warnings) from doctests to fix building with recent Rust +Patch: 0001-drop-deny-warnings-from-doctests.patch BuildRequires: rust-packaging >= 21