We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfb1679 commit f7ec3f4Copy full SHA for f7ec3f4
src/stream/stream/mod.rs
@@ -754,7 +754,7 @@ pub trait Stream {
754
/// [`stream`]: trait.Stream.html#tymethod.next
755
#[must_use = "if you really need to exhaust the iterator, consider `.for_each(drop)` instead (TODO)"]
756
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
757
- #[cfg(feature = "unstable")]
+ #[cfg(any(feature = "unstable", feature = "docs"))]
758
fn collect<'a, B>(self) -> dyn_ret!('a, B)
759
where
760
Self: futures_core::stream::Stream + Sized + Send + 'a,
0 commit comments