Skip to content

Commit

Permalink
Unrolled build for rust-lang#122016
Browse files Browse the repository at this point in the history
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```
  • Loading branch information
rust-timer authored Mar 6, 2024
2 parents 62415e2 + 960dd38 commit 2a452e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/alloc/tests/task.rs
Original file line number Diff line number Diff line change
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 2a452e8

Please sign in to comment.