]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/macros.rs
Remove spawning from task::Context
[rust.git] / src / libstd / macros.rs
index f15494c5fd7f59beeab250014135eeb81f1ef5da..06056d6ed2040c8a0ccc04802a2fff4bc98dc9b9 100644 (file)
@@ -229,8 +229,8 @@ macro_rules! await {
         let mut pinned = $e;
         loop {
             if let $crate::task::Poll::Ready(x) =
-                $crate::future::poll_in_task_cx(unsafe {
-                    $crate::mem::PinMut::new_unchecked(&mut pinned)
+                $crate::future::poll_with_tls_waker(unsafe {
+                    $crate::pin::Pin::new_unchecked(&mut pinned)
                 })
             {
                 break x;
@@ -309,7 +309,7 @@ macro_rules! assert_approx_eq {
 /// These macros do not have any corresponding definition with a `macro_rules!`
 /// macro, but are documented here. Their implementations can be found hardcoded
 /// into libsyntax itself.
-#[cfg(dox)]
+#[cfg(rustdoc)]
 mod builtin {
 
     /// Unconditionally causes compilation to fail with the given error message when encountered.