Skip to content

Commit a711fe7

Browse files
committed
Fix stage0 core tests
1 parent 06c5bff commit a711fe7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

library/core/src/iter/sources/from_coroutine.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ use crate::pin::Pin;
1111
/// # Examples
1212
///
1313
/// ```
14-
/// #![feature(coroutines)]
14+
/// #![cfg_attr(bootstrap, feature(generators))]
15+
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
1516
/// #![feature(iter_from_coroutine)]
1617
///
1718
/// let it = std::iter::from_coroutine(|| {

library/core/src/ops/coroutine.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ pub enum CoroutineState<Y, R> {
4040
/// closure-like:
4141
///
4242
/// ```rust
43-
/// #![feature(coroutines, coroutine_trait)]
43+
/// #![cfg_attr(bootstrap, feature(generators))]
44+
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
45+
/// #![feature(coroutine_trait)]
4446
///
4547
/// use std::ops::{Coroutine, CoroutineState};
4648
/// use std::pin::Pin;

library/core/src/pin.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,9 @@ impl<P, U> DispatchFromDyn<Pin<U>> for Pin<P> where P: DispatchFromDyn<U> {}
10881088
/// ### With `Coroutine`s
10891089
///
10901090
/// ```rust
1091-
/// #![feature(coroutines, coroutine_trait)]
1091+
/// #![cfg_attr(bootstrap, feature(generators))]
1092+
/// #![cfg_attr(not(bootstrap), feature(coroutines))]
1093+
/// #![feature(coroutine_trait)]
10921094
/// use core::{
10931095
/// ops::{Coroutine, CoroutineState},
10941096
/// pin::pin,

0 commit comments

Comments
 (0)