Allow warnings in doctests

epel9
Josh Stone 5 years ago
parent b68e208643
commit 8c5fae150a

@ -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))]

@ -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 <jistone@redhat.com> - 0.5.6-6
- Allow warnings in doctests
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save