@@ -673,14 +673,14 @@ impl LocalWaker { |
|
|
673 |
673 |
/// #![feature(noop_waker)] |
674 |
674 |
/// |
675 |
675 |
/// use std::future::Future; |
676 |
|
- /// use std::task::{ContextBuilder, LocalWaker}; |
|
676 |
+ /// use std::task::{ContextBuilder, LocalWaker, Waker, Poll}; |
677 |
677 |
/// |
678 |
|
- /// let mut cx = task::ContextBuilder::from_waker(Waker::noop()) |
|
678 |
+ /// let mut cx = ContextBuilder::from_waker(Waker::noop()) |
679 |
679 |
/// .local_waker(LocalWaker::noop()) |
680 |
680 |
/// .build(); |
681 |
681 |
/// |
682 |
682 |
/// let mut future = Box::pin(async { 10 }); |
683 |
|
- /// assert_eq!(future.as_mut().poll(&mut cx), task::Poll::Ready(10)); |
|
683 |
+ /// assert_eq!(future.as_mut().poll(&mut cx), Poll::Ready(10)); |
684 |
684 |
/// ``` |
685 |
685 |
#[inline] |
686 |
686 |
#[must_use] |