From 8fe93e37a4ca316a3583250dca383c0b2a453586 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 2 Dec 2017 20:48:50 +0100 Subject: [PATCH 1/3] bump quickcheck to 0.5 (#11) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b548a80..44e7eb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,4 +8,4 @@ repository = "https://github.com/droundy/arrayref" documentation = "https://docs.rs/arrayref" [dev-dependencies] -quickcheck = "0.4" +quickcheck = "0.5" From 9ca363ac250caf97a2e75155452312e8bb21a857 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 1 Jan 2018 14:15:04 +0100 Subject: [PATCH 2/3] bump quickcheck to 0.6 (#12) --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 44e7eb6..e9f9a46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,4 +8,4 @@ repository = "https://github.com/droundy/arrayref" documentation = "https://docs.rs/arrayref" [dev-dependencies] -quickcheck = "0.5" +quickcheck = "0.6" From f151f5c4700abf4d6a1e2cb470582d8173d7ecf3 Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Wed, 15 Aug 2018 17:57:47 -0400 Subject: [PATCH 3/3] suppress the unused_unsafe lint in macro code (#14) Previously if you used any of the macros inside an unsafe block of your own, the compiler would complain that you were unnecessarily nesting unsafe blocks. --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index acb3985..fba08f3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,6 +63,7 @@ macro_rules! array_ref { } let offset = $offset; let slice = & $arr[offset..offset + $len]; + #[allow(unused_unsafe)] unsafe { as_array(slice) } @@ -127,6 +128,7 @@ macro_rules! array_refs { } ),*) } let input = $arr; + #[allow(unused_unsafe)] unsafe { as_arrays(input) } @@ -145,6 +147,7 @@ macro_rules! array_refs { } ),* ) } let input = $arr; + #[allow(unused_unsafe)] unsafe { as_arrays(input) } @@ -220,6 +223,7 @@ macro_rules! mut_array_refs { } ),*) } let input = $arr; + #[allow(unused_unsafe)] unsafe { as_arrays(input) } @@ -238,6 +242,7 @@ macro_rules! mut_array_refs { } ),* ) } let input = $arr; + #[allow(unused_unsafe)] unsafe { as_arrays(input) } @@ -279,6 +284,7 @@ macro_rules! array_mut_ref { } let offset = $offset; let slice = &mut $arr[offset..offset + $len]; + #[allow(unused_unsafe)] unsafe { as_array(slice) }