Parse 'async unsafe fn' instead of 'unsafe async fn'.
This commit is contained in:
parent
0bfbaa6e8d
commit
2ebfbb4fab
3 changed files with 36 additions and 39 deletions
|
|
@ -122,7 +122,7 @@ fn async_fn_with_internal_borrow(y: u8) -> impl Future<Output = u8> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe async fn unsafe_async_fn(x: u8) -> u8 {
|
||||
async unsafe fn unsafe_async_fn(x: u8) -> u8 {
|
||||
wake_and_yield_once().await;
|
||||
x
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ fn async_fn_with_internal_borrow(y: u8) -> impl Future<Output = u8> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe async fn unsafe_async_fn(x: u8) -> u8 {
|
||||
async unsafe fn unsafe_async_fn(x: u8) -> u8 {
|
||||
await!(wake_and_yield_once());
|
||||
x
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue