Skip to content

Commit

Permalink
Unrolled await macro.
Browse files Browse the repository at this point in the history
Was then able to the minimise the reproduction a little further.
  • Loading branch information
gilescope committed Mar 5, 2019
1 parent 6dd2a85 commit 33a6469
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This issue reproduces an ICE on compile (E.g. fails on 2018-12-19 nightly).
// run-pass
// edition:2018
#![feature(async_await,futures_api,await_macro,generators)]
#![feature(async_await,futures_api,generators)]

pub struct Foo;

Expand All @@ -16,12 +16,12 @@ impl Foo {
}
}

pub async fn run<'a>(&'a self, data: &'a [u8])
pub async fn run<'a>(&'a self, data: &'a [u8])
{
await!(self.with(move || {
println!("{:p}", data);
}))
let _to_pin = self.with(move || println!("{:p}", data));
loop {
yield
}
}
}

fn main() {}

0 comments on commit 33a6469

Please sign in to comment.