Skip to content

Commit df41e4f

Browse files
committed
Remove the old await! macro
This doesn't work anymore, and its continued presence is cause for confusion.
1 parent ef01f29 commit df41e4f

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

Diff for: src/libstd/macros.rs

-23
Original file line numberDiff line numberDiff line change
@@ -357,29 +357,6 @@ macro_rules! dbg {
357357
};
358358
}
359359

360-
/// Awaits the completion of an async call.
361-
#[macro_export]
362-
#[unstable(feature = "await_macro", issue = "50547")]
363-
#[allow_internal_unstable(gen_future, generators)]
364-
#[allow_internal_unsafe]
365-
macro_rules! r#await {
366-
($e:expr) => { {
367-
let mut pinned = $e;
368-
loop {
369-
if let $crate::task::Poll::Ready(x) =
370-
$crate::future::poll_with_tls_context(unsafe {
371-
$crate::pin::Pin::new_unchecked(&mut pinned)
372-
})
373-
{
374-
break x;
375-
}
376-
// FIXME(cramertj) prior to stabilizing await, we have to ensure that this
377-
// can't be used to create a generator on stable via `|| await!()`.
378-
yield
379-
}
380-
} }
381-
}
382-
383360
/// Selects the first successful receive event from a number of receivers.
384361
///
385362
/// This macro is used to wait for the first event to occur on a number of

0 commit comments

Comments
 (0)