diff --git a/.gitignore b/.gitignore index 2718258..357d144 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /memoffset-0.2.1.crate +/memoffset-0.5.1.crate diff --git a/0001-Add-allow-const_err-on-test-offset_index_out_of_boun.patch b/0001-Add-allow-const_err-on-test-offset_index_out_of_boun.patch deleted file mode 100644 index 2a00c44..0000000 --- a/0001-Add-allow-const_err-on-test-offset_index_out_of_boun.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 0437fd69c1de4c1f97d8cf449e6d510168cb8838 Mon Sep 17 00:00:00 2001 -From: Josh Stone -Date: Fri, 7 Sep 2018 15:40:11 -0700 -Subject: [PATCH] Add #[allow(const_err)] on test offset_index_out_of_bounds - -The compiler now raises a deny-by-default `const_err` lint on this test, -which doesn't let it get to the expected `#[should_panic]`. We can -allow that lint in order to let the test hit the error it wants. ---- - src/offset_of.rs | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/offset_of.rs b/src/offset_of.rs -index 61486577b061..1c981c288a2e 100644 ---- a/src/offset_of.rs -+++ b/src/offset_of.rs -@@ -105,6 +105,7 @@ mod tests { - - #[test] - #[should_panic] -+ #[allow(const_err)] - fn offset_index_out_of_bounds() { - offset_of!(Foo, b[4]); - } --- -2.17.1 - diff --git a/rust-memoffset.spec b/rust-memoffset.spec index 60eb1c0..c617c75 100644 --- a/rust-memoffset.spec +++ b/rust-memoffset.spec @@ -5,16 +5,14 @@ %global crate memoffset Name: rust-%{crate} -Version: 0.2.1 -Release: 8%{?dist} +Version: 0.5.1 +Release: 1%{?dist} Summary: Offset_of functionality for Rust structs # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/memoffset Source: %{crates_source} -# https://github.com/Gilnaa/memoffset/pull/3 -Patch0001: 0001-Add-allow-const_err-on-test-offset_index_out_of_boun.patch ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -73,6 +71,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Fri Aug 30 08:55:30 CEST 2019 Igor Gnatenko - 0.5.1-1 +- Update to 0.5.1 + * Fri Jul 26 2019 Fedora Release Engineering - 0.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 40b07dd..1294713 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (memoffset-0.2.1.crate) = 4901eca49eb20acc53d1120548925d691d5e0a0ee899f5c26f55f8b997549cea3b819b1f9b4f5495f4bc73fbcaa386cda50cefdc0036c097c4eeca8086568530 +SHA512 (memoffset-0.5.1.crate) = 8bd14c74a65464061acc5594eb108e630e8dd7a9dedccfab0606c255bd43e7b30241ba0bea11bfa80f9afd8fdbf0879ad7d998628f938a558716ec10da31008e