We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b690c8 + 75950ee commit 2dcbff1Copy full SHA for 2dcbff1
alloc/tests/task.rs
@@ -4,6 +4,7 @@ use alloc::task::{LocalWake, Wake};
4
use core::task::{LocalWaker, Waker};
5
6
#[test]
7
+#[cfg_attr(miri, should_panic)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it fails
8
fn test_waker_will_wake_clone() {
9
struct NoopWaker;
10
@@ -19,6 +20,7 @@ fn test_waker_will_wake_clone() {
19
20
}
21
22
23
24
fn test_local_waker_will_wake_clone() {
25
26
0 commit comments