@@ -48,14 +48,14 @@ lift1!([PartialOrd] Range<A>; base => {
48
48
49
49
#[ cfg( feature = "unstable" ) ]
50
50
arbitrary ! (
51
- [ Y : Arbitrary , R : Arbitrary ] GeneratorState <Y , R >,
51
+ [ Y : Arbitrary , R : Arbitrary ] CoroutineState <Y , R >,
52
52
TupleUnion <( WA <SMapped <Y , Self >>, WA <SMapped <R , Self >>) >,
53
53
product_type![ Y :: Parameters , R :: Parameters ] ;
54
54
args => {
55
55
let product_unpack![ y, r] = args;
56
56
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 )
59
59
]
60
60
}
61
61
) ;
@@ -65,7 +65,7 @@ use core::fmt;
65
65
66
66
#[ cfg( feature = "unstable" ) ]
67
67
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 >
69
69
{
70
70
type Parameters = ( ) ;
71
71
@@ -79,8 +79,8 @@ impl<A: fmt::Debug + 'static, B: fmt::Debug + 'static>
79
79
BS : Strategy < Value = B > + ' static ,
80
80
{
81
81
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 )
84
84
]
85
85
. boxed ( )
86
86
}
@@ -99,6 +99,6 @@ mod test {
99
99
100
100
#[ cfg( feature = "unstable" ) ]
101
101
no_panic_test ! (
102
- generator_state => GeneratorState <u32 , u64 >
102
+ generator_state => CoroutineState <u32 , u64 >
103
103
) ;
104
104
}
0 commit comments