Skip to content

Commit 33a6469

Browse files
committed
Unrolled await macro.
Was then able to the minimise the reproduction a little further.
1 parent 6dd2a85 commit 33a6469

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/run-pass/issues/issue-57084-async-await.rs renamed to src/test/run-pass/generator/issue-57084.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This issue reproduces an ICE on compile (E.g. fails on 2018-12-19 nightly).
22
// run-pass
33
// edition:2018
4-
#![feature(async_await,futures_api,await_macro,generators)]
4+
#![feature(async_await,futures_api,generators)]
55

66
pub struct Foo;
77

@@ -16,12 +16,12 @@ impl Foo {
1616
}
1717
}
1818

19-
pub async fn run<'a>(&'a self, data: &'a [u8])
19+
pub async fn run<'a>(&'a self, data: &'a [u8])
2020
{
21-
await!(self.with(move || {
22-
println!("{:p}", data);
23-
}))
21+
let _to_pin = self.with(move || println!("{:p}", data));
22+
loop {
23+
yield
24+
}
2425
}
2526
}
26-
2727
fn main() {}

0 commit comments

Comments
 (0)