From 8c5fae150aa3ddd9eec2dc16aa6e3047da27b2fa Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 10 Dec 2019 12:38:20 -0800 Subject: [PATCH] Allow warnings in doctests --- rand-0.5.6-allow-warnings.patch | 11 +++++++++++ rust-rand0.5.spec | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 rand-0.5.6-allow-warnings.patch diff --git a/rand-0.5.6-allow-warnings.patch b/rand-0.5.6-allow-warnings.patch new file mode 100644 index 0000000..dc5790b --- /dev/null +++ b/rand-0.5.6-allow-warnings.patch @@ -0,0 +1,11 @@ +--- rand-0.5.6/src/lib.rs.orig 2019-01-26 02:19:33.000000000 -0800 ++++ rand-0.5.6/src/lib.rs 2019-12-10 12:35:23.150740539 -0800 +@@ -228,7 +228,7 @@ + + #![deny(missing_docs)] + #![deny(missing_debug_implementations)] +-#![doc(test(attr(allow(unused_variables), deny(warnings))))] ++#![doc(test(attr(allow(unused_variables))))] + + #![cfg_attr(not(feature="std"), no_std)] + #![cfg_attr(all(feature="alloc", not(feature="std")), feature(alloc))] diff --git a/rust-rand0.5.spec b/rust-rand0.5.spec index 57c1d86..21d1c52 100644 --- a/rust-rand0.5.spec +++ b/rust-rand0.5.spec @@ -6,7 +6,7 @@ Name: rust-%{crate}0.5 Version: 0.5.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Random number generators and other randomness functionality # Upstream license specification: MIT/Apache-2.0 @@ -17,6 +17,7 @@ Source: %{crates_source} # * Exclude CI files, https://github.com/rust-random/rand/pull/635 # * Remove non-unix dependencies Patch0: rand-fix-metadata.diff +Patch1: rand-0.5.6-allow-warnings.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -183,6 +184,9 @@ which use "std" feature of "%{crate}" crate. %endif %changelog +* Tue Dec 10 2019 Josh Stone - 0.5.6-6 +- Allow warnings in doctests + * Fri Jul 26 2019 Fedora Release Engineering - 0.5.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild