mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 12:33:57 +00:00
enable test_join test in Miri
This commit is contained in:
parent
737b461555
commit
e1338cc254
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue