Skip to content

Commit

Permalink
Fix stage0 core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 20, 2023
1 parent 06c5bff commit a711fe7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion library/core/src/iter/sources/from_coroutine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(|| {
Expand Down
4 changes: 3 additions & 1 deletion library/core/src/ops/coroutine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion library/core/src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a711fe7

Please sign in to comment.