Skip to content

Commit

Permalink
Rollup merge of rust-lang#122016 - RalfJung:will_wake, r=dtolnay
Browse files Browse the repository at this point in the history
will_wake tests fail on Miri and that is expected

Follow-up to rust-lang#121622
r? `@cuviper` `@dtolnay`
  • Loading branch information
matthiaskrgr committed Mar 5, 2024
2 parents 9e3f983 + 960dd38 commit 62aed06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/alloc/tests/task.rs
Expand Up @@ -4,6 +4,7 @@ use alloc::task::{LocalWake, Wake};
use core::task::{LocalWaker, Waker};

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

Expand All @@ -19,6 +20,7 @@ fn test_waker_will_wake_clone() {
}

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

Expand Down

0 comments on commit 62aed06

Please sign in to comment.