Skip to content

Commit 2a452e8

Browse files
authored
Unrolled build for rust-lang#122016
Rollup merge of rust-lang#122016 - RalfJung:will_wake, r=dtolnay will_wake tests fail on Miri and that is expected Follow-up to rust-lang#121622 r? ```@cuviper``` ```@dtolnay```
2 parents 62415e2 + 960dd38 commit 2a452e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/alloc/tests/task.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use alloc::task::{LocalWake, Wake};
44
use core::task::{LocalWaker, Waker};
55

66
#[test]
7+
#[cfg_attr(miri, should_panic)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it fails
78
fn test_waker_will_wake_clone() {
89
struct NoopWaker;
910

@@ -19,6 +20,7 @@ fn test_waker_will_wake_clone() {
1920
}
2021

2122
#[test]
23+
#[cfg_attr(miri, should_panic)] // `will_wake` doesn't guarantee that this test will work, and indeed on Miri it fails
2224
fn test_local_waker_will_wake_clone() {
2325
struct NoopWaker;
2426

0 commit comments

Comments
 (0)