@@ -99,106 +99,52 @@ pub use self::unfold::{unfold, Unfold};
9999mod zip;
100100pub use self :: zip:: Zip ;
101101
102- #[ cfg_attr(
103- feature = "cfg-target-has-atomic" ,
104- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
105- ) ]
106102#[ cfg( feature = "alloc" ) ]
107- mod buffer_unordered;
108- #[ cfg_attr(
109- feature = "cfg-target-has-atomic" ,
110- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
111- ) ]
103+ mod chunks;
112104#[ cfg( feature = "alloc" ) ]
113- pub use self :: buffer_unordered :: BufferUnordered ;
105+ pub use self :: chunks :: Chunks ;
114106
115- #[ cfg_attr(
116- feature = "cfg-target-has-atomic" ,
117- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
118- ) ]
119- #[ cfg( feature = "alloc" ) ]
120- mod buffered;
121- #[ cfg_attr(
122- feature = "cfg-target-has-atomic" ,
123- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
124- ) ]
125- #[ cfg( feature = "alloc" ) ]
126- pub use self :: buffered:: Buffered ;
107+ cfg_target_has_atomic ! {
108+ #[ cfg( feature = "alloc" ) ]
109+ mod buffer_unordered;
110+ #[ cfg( feature = "alloc" ) ]
111+ pub use self :: buffer_unordered:: BufferUnordered ;
127112
128- #[ cfg( feature = "std " ) ]
129- mod catch_unwind ;
130- #[ cfg( feature = "std " ) ]
131- pub use self :: catch_unwind :: CatchUnwind ;
113+ #[ cfg( feature = "alloc " ) ]
114+ mod buffered ;
115+ #[ cfg( feature = "alloc " ) ]
116+ pub use self :: buffered :: Buffered ;
132117
133- #[ cfg( feature = "alloc" ) ]
134- mod chunks ;
135- #[ cfg( feature = "alloc" ) ]
136- pub use self :: chunks :: Chunks ;
118+ #[ cfg( feature = "alloc" ) ]
119+ mod for_each_concurrent ;
120+ #[ cfg( feature = "alloc" ) ]
121+ pub use self :: for_each_concurrent :: ForEachConcurrent ;
137122
138- #[ cfg_attr(
139- feature = "cfg-target-has-atomic" ,
140- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
141- ) ]
142- #[ cfg( feature = "alloc" ) ]
143- mod for_each_concurrent;
144- #[ cfg_attr(
145- feature = "cfg-target-has-atomic" ,
146- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
147- ) ]
148- #[ cfg( feature = "alloc" ) ]
149- pub use self :: for_each_concurrent:: ForEachConcurrent ;
123+ #[ cfg( feature = "alloc" ) ]
124+ mod futures_ordered;
125+ #[ cfg( feature = "alloc" ) ]
126+ pub use self :: futures_ordered:: { futures_ordered, FuturesOrdered } ;
150127
151- #[ cfg_attr(
152- feature = "cfg-target-has-atomic" ,
153- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
154- ) ]
155- #[ cfg( feature = "alloc" ) ]
156- mod futures_ordered;
157- #[ cfg_attr(
158- feature = "cfg-target-has-atomic" ,
159- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
160- ) ]
161- #[ cfg( feature = "alloc" ) ]
162- pub use self :: futures_ordered:: { futures_ordered, FuturesOrdered } ;
128+ #[ cfg( feature = "alloc" ) ]
129+ mod futures_unordered;
130+ #[ cfg( feature = "alloc" ) ]
131+ pub use self :: futures_unordered:: { futures_unordered, FuturesUnordered } ;
163132
164- #[ cfg_attr(
165- feature = "cfg-target-has-atomic" ,
166- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
167- ) ]
168- #[ cfg( feature = "alloc" ) ]
169- mod futures_unordered;
170- #[ cfg_attr(
171- feature = "cfg-target-has-atomic" ,
172- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
173- ) ]
174- #[ cfg( feature = "alloc" ) ]
175- pub use self :: futures_unordered:: { futures_unordered, FuturesUnordered } ;
133+ #[ cfg( feature = "alloc" ) ]
134+ mod split;
135+ #[ cfg( feature = "alloc" ) ]
136+ pub use self :: split:: { SplitStream , SplitSink , ReuniteError } ;
176137
177- #[ cfg_attr(
178- feature = "cfg-target-has-atomic" ,
179- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
180- ) ]
181- #[ cfg( feature = "alloc" ) ]
182- mod split;
183- #[ cfg_attr(
184- feature = "cfg-target-has-atomic" ,
185- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
186- ) ]
187- #[ cfg( feature = "alloc" ) ]
188- pub use self :: split:: { SplitStream , SplitSink , ReuniteError } ;
138+ #[ cfg( feature = "alloc" ) ]
139+ mod select_all;
140+ #[ cfg( feature = "alloc" ) ]
141+ pub use self :: select_all:: { select_all, SelectAll } ;
142+ }
189143
190- #[ cfg_attr(
191- feature = "cfg-target-has-atomic" ,
192- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
193- ) ]
194- #[ cfg( feature = "alloc" ) ]
195- mod select_all;
196- #[ cfg_attr(
197- feature = "cfg-target-has-atomic" ,
198- cfg( all( target_has_atomic = "cas" , target_has_atomic = "ptr" ) )
199- ) ]
200- #[ cfg( feature = "alloc" ) ]
201- pub use self :: select_all:: { select_all, SelectAll } ;
144+ #[ cfg( feature = "std" ) ]
145+ mod catch_unwind;
146+ #[ cfg( feature = "std" ) ]
147+ pub use self :: catch_unwind:: CatchUnwind ;
202148
203149impl < T : ?Sized > StreamExt for T where T : Stream { }
204150
0 commit comments