Fix stage0 core tests
This commit is contained in:
parent
5c1872d7ae
commit
3beadb5ebd
3 changed files with 8 additions and 3 deletions
|
@ -11,7 +11,8 @@ use crate::pin::Pin;
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(coroutines)]
|
/// #![cfg_attr(bootstrap, feature(generators))]
|
||||||
|
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
|
||||||
/// #![feature(iter_from_coroutine)]
|
/// #![feature(iter_from_coroutine)]
|
||||||
///
|
///
|
||||||
/// let it = std::iter::from_coroutine(|| {
|
/// let it = std::iter::from_coroutine(|| {
|
||||||
|
|
|
@ -40,7 +40,9 @@ pub enum CoroutineState<Y, R> {
|
||||||
/// closure-like:
|
/// closure-like:
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// #![feature(coroutines, coroutine_trait)]
|
/// #![cfg_attr(bootstrap, feature(generators))]
|
||||||
|
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
|
||||||
|
/// #![feature(coroutine_trait)]
|
||||||
///
|
///
|
||||||
/// use std::ops::{Coroutine, CoroutineState};
|
/// use std::ops::{Coroutine, CoroutineState};
|
||||||
/// use std::pin::Pin;
|
/// use std::pin::Pin;
|
||||||
|
|
|
@ -1088,7 +1088,9 @@ impl<P, U> DispatchFromDyn<Pin<U>> for Pin<P> where P: DispatchFromDyn<U> {}
|
||||||
/// ### With `Coroutine`s
|
/// ### With `Coroutine`s
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// #![feature(coroutines, coroutine_trait)]
|
/// #![cfg_attr(bootstrap, feature(generators))]
|
||||||
|
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
|
||||||
|
/// #![feature(coroutine_trait)]
|
||||||
/// use core::{
|
/// use core::{
|
||||||
/// ops::{Coroutine, CoroutineState},
|
/// ops::{Coroutine, CoroutineState},
|
||||||
/// pin::pin,
|
/// pin::pin,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue