Fix stage0 core tests

This commit is contained in:
Oli Scherer 2023-10-20 15:00:11 +00:00
parent 5c1872d7ae
commit 3beadb5ebd
3 changed files with 8 additions and 3 deletions

View File

@ -11,7 +11,8 @@ use crate::pin::Pin;
/// # Examples
///
/// ```
/// #![feature(coroutines)]
/// #![cfg_attr(bootstrap, feature(generators))]
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
/// #![feature(iter_from_coroutine)]
///
/// let it = std::iter::from_coroutine(|| {

View File

@ -40,7 +40,9 @@ pub enum CoroutineState<Y, R> {
/// closure-like:
///
/// ```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::pin::Pin;

View File

@ -1088,7 +1088,9 @@ impl<P, U> DispatchFromDyn<Pin<U>> for Pin<P> where P: DispatchFromDyn<U> {}
/// ### With `Coroutine`s
///
/// ```rust
/// #![feature(coroutines, coroutine_trait)]
/// #![cfg_attr(bootstrap, feature(generators))]
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
/// #![feature(coroutine_trait)]
/// use core::{
/// ops::{Coroutine, CoroutineState},
/// pin::pin,