enable test_join test in Miri

This commit is contained in:
Ralf Jung 2023-07-03 14:05:55 +02:00
parent 737b461555
commit e1338cc254
2 changed files with 1 additions and 1 deletions

View file

@ -1906,6 +1906,7 @@ fn next_then_drop<I: Iterator>(mut i: I) {
assert_eq!(*v0, 13);
// Smoke test that would fire even outside Miri if an actual relocation happened.
// Also ensures the pointer is still writeable after all this.
*v0 -= 13;
assert_eq!(v[0], 0);
}

View file

@ -30,7 +30,6 @@ 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;