Skip to content

Commit

Permalink
Rollup merge of #92121 - RalfJung:miri-core-test, r=kennytm
Browse files Browse the repository at this point in the history
disable test with self-referential generator on Miri

Running the libcore test suite in Miri currently fails due to the known incompatibility of self-referential generators with Miri's aliasing checks (rust-lang/unsafe-code-guidelines#148). So let's disable that test in Miri for now.
  • Loading branch information
matthiaskrgr authored Dec 23, 2021
2 parents 40c6720 + 5994990 commit 94b9b5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/tests/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fn poll_n(val: usize, num: usize) -> PollN {
}

#[test]
#[cfg_attr(miri, ignore)] // self-referential generators do not work with Miri's aliasing checks
fn test_join() {
block_on(async move {
let x = join!(async { 0 }).await;
Expand Down

0 comments on commit 94b9b5f

Please sign in to comment.