Skip to content

Commit 5e17be7

Browse files
committed
fix nightly build (re: rust-lang/rust#116958)
1 parent 6f534cb commit 5e17be7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

proptest/src/arbitrary/_alloc/ops.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ lift1!([PartialOrd] Range<A>; base => {
4848

4949
#[cfg(feature = "unstable")]
5050
arbitrary!(
51-
[Y: Arbitrary, R: Arbitrary] GeneratorState<Y, R>,
51+
[Y: Arbitrary, R: Arbitrary] CoroutineState<Y, R>,
5252
TupleUnion<(WA<SMapped<Y, Self>>, WA<SMapped<R, Self>>)>,
5353
product_type![Y::Parameters, R::Parameters];
5454
args => {
5555
let product_unpack![y, r] = args;
5656
prop_oneof![
57-
static_map(any_with::<Y>(y), GeneratorState::Yielded),
58-
static_map(any_with::<R>(r), GeneratorState::Complete)
57+
static_map(any_with::<Y>(y), CoroutineState::Yielded),
58+
static_map(any_with::<R>(r), CoroutineState::Complete)
5959
]
6060
}
6161
);
@@ -65,7 +65,7 @@ use core::fmt;
6565

6666
#[cfg(feature = "unstable")]
6767
impl<A: fmt::Debug + 'static, B: fmt::Debug + 'static>
68-
functor::ArbitraryF2<A, B> for GeneratorState<A, B>
68+
functor::ArbitraryF2<A, B> for CoroutineState<A, B>
6969
{
7070
type Parameters = ();
7171

@@ -79,8 +79,8 @@ impl<A: fmt::Debug + 'static, B: fmt::Debug + 'static>
7979
BS: Strategy<Value = B> + 'static,
8080
{
8181
prop_oneof![
82-
fst.prop_map(GeneratorState::Yielded),
83-
snd.prop_map(GeneratorState::Complete)
82+
fst.prop_map(CoroutineState::Yielded),
83+
snd.prop_map(CoroutineState::Complete)
8484
]
8585
.boxed()
8686
}
@@ -99,6 +99,6 @@ mod test {
9999

100100
#[cfg(feature = "unstable")]
101101
no_panic_test!(
102-
generator_state => GeneratorState<u32, u64>
102+
generator_state => CoroutineState<u32, u64>
103103
);
104104
}

proptest/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
))]
2525
#![cfg_attr(
2626
feature = "unstable",
27-
feature(allocator_api, try_trait_v2, generator_trait, never_type)
27+
feature(allocator_api, try_trait_v2, coroutine_trait, never_type)
2828
)]
2929
#![cfg_attr(all(feature = "std", feature = "unstable"), feature(ip))]
3030
#![cfg_attr(docsrs, feature(doc_cfg))]

0 commit comments

Comments
 (0)