diff --git a/tests/basic.rs b/tests/basic.rs index c9fb9f4..727a05e 100644 --- a/tests/basic.rs +++ b/tests/basic.rs @@ -21,7 +21,7 @@ macro_rules! future { static $drop: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Fut(Box); + struct Fut(#[allow(dead_code)] Box); impl Future for Fut { type Output = Box; @@ -56,7 +56,7 @@ macro_rules! schedule { static $sched: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Guard(Box); + struct Guard(#[allow(dead_code)] Box); impl Drop for Guard { fn drop(&mut self) { diff --git a/tests/cancel.rs b/tests/cancel.rs index 0fe7c72..0333367 100644 --- a/tests/cancel.rs +++ b/tests/cancel.rs @@ -24,7 +24,7 @@ macro_rules! future { static $drop_t: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Fut(Box); + struct Fut(#[allow(dead_code)] Box); impl Future for Fut { type Output = Out; @@ -43,7 +43,7 @@ macro_rules! future { } #[derive(Default)] - struct Out(Box, bool); + struct Out(#[allow(dead_code)] Box, bool); impl Drop for Out { fn drop(&mut self) { @@ -71,7 +71,7 @@ macro_rules! schedule { static $sched: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Guard(Box); + struct Guard(#[allow(dead_code)] Box); impl Drop for Guard { fn drop(&mut self) { diff --git a/tests/join.rs b/tests/join.rs index 2ac7b8d..089b5c1 100644 --- a/tests/join.rs +++ b/tests/join.rs @@ -26,7 +26,7 @@ macro_rules! future { static $drop_t: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Fut(Box); + struct Fut(#[allow(dead_code)] Box); impl Future for Fut { type Output = Out; @@ -44,7 +44,7 @@ macro_rules! future { } #[derive(Default)] - struct Out(Box, bool); + struct Out(#[allow(dead_code)] Box, bool); impl Drop for Out { fn drop(&mut self) { @@ -72,7 +72,7 @@ macro_rules! schedule { static $sched: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Guard(Box); + struct Guard(#[allow(dead_code)] Box); impl Drop for Guard { fn drop(&mut self) { diff --git a/tests/panic.rs b/tests/panic.rs index 85684a0..726e385 100644 --- a/tests/panic.rs +++ b/tests/panic.rs @@ -23,7 +23,7 @@ macro_rules! future { static $drop: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Fut(Box); + struct Fut(#[allow(dead_code)] Box); impl Future for Fut { type Output = (); @@ -59,7 +59,7 @@ macro_rules! schedule { static $sched: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Guard(Box); + struct Guard(#[allow(dead_code)] Box); impl Drop for Guard { fn drop(&mut self) { diff --git a/tests/ready.rs b/tests/ready.rs index e345565..aefb36e 100644 --- a/tests/ready.rs +++ b/tests/ready.rs @@ -24,7 +24,7 @@ macro_rules! future { static $drop_t: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Fut(Box); + struct Fut(#[allow(dead_code)] Box); impl Future for Fut { type Output = Out; @@ -43,7 +43,7 @@ macro_rules! future { } #[derive(Default)] - struct Out(Box, bool); + struct Out(#[allow(dead_code)] Box, bool); impl Drop for Out { fn drop(&mut self) { @@ -71,7 +71,7 @@ macro_rules! schedule { static $sched: AtomicUsize = AtomicUsize::new(0); let $name = { - struct Guard(Box); + struct Guard(#[allow(dead_code)] Box); impl Drop for Guard { fn drop(&mut self) { diff --git a/tests/waker_panic.rs b/tests/waker_panic.rs index 7a7792e..5b54f9d 100644 --- a/tests/waker_panic.rs +++ b/tests/waker_panic.rs @@ -29,7 +29,7 @@ macro_rules! future { static WAKER: AtomicWaker = AtomicWaker::new(); let ($name, $get_waker) = { - struct Fut(Cell, Box); + struct Fut(Cell, #[allow(dead_code)] Box); impl Future for Fut { type Output = (); @@ -76,7 +76,7 @@ macro_rules! schedule { let ($name, $chan) = { let (s, r) = flume::unbounded(); - struct Guard(Box); + struct Guard(#[allow(dead_code)] Box); impl Drop for Guard { fn drop(&mut self) { diff --git a/tests/waker_pending.rs b/tests/waker_pending.rs index 9c95cba..ccd540b 100644 --- a/tests/waker_pending.rs +++ b/tests/waker_pending.rs @@ -26,7 +26,7 @@ macro_rules! future { static WAKER: AtomicWaker = AtomicWaker::new(); let ($name, $get_waker) = { - struct Fut(Box); + struct Fut(#[allow(dead_code)] Box); impl Future for Fut { type Output = (); @@ -67,7 +67,7 @@ macro_rules! schedule { let ($name, $chan) = { let (s, r) = flume::unbounded(); - struct Guard(Box); + struct Guard(#[allow(dead_code)] Box); impl Drop for Guard { fn drop(&mut self) { diff --git a/tests/waker_ready.rs b/tests/waker_ready.rs index 335134e..b6f6b5f 100644 --- a/tests/waker_ready.rs +++ b/tests/waker_ready.rs @@ -26,7 +26,7 @@ macro_rules! future { static WAKER: AtomicWaker = AtomicWaker::new(); let ($name, $get_waker) = { - struct Fut(Cell, Box); + struct Fut(Cell, #[allow(dead_code)] Box); impl Future for Fut { type Output = Box; @@ -73,7 +73,7 @@ macro_rules! schedule { let ($name, $chan) = { let (s, r) = flume::unbounded(); - struct Guard(Box); + struct Guard(#[allow(dead_code)] Box); impl Drop for Guard { fn drop(&mut self) {