Skip to content

Commit e173151

Browse files
Nemo157cramertj
authored andcommitted
Use doc(no_inline) on unnamed prelude exports
1 parent f9f26e0 commit e173151

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

futures/src/lib.rs

+15-3
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,25 @@ pub mod prelude {
326326
//!
327327
//! The prelude may grow over time as additional items see ubiquitous use.
328328
329-
pub use crate::future::{self, Future, TryFuture, FutureExt as _, TryFutureExt as _};
330-
pub use crate::stream::{self, Stream, TryStream, StreamExt as _, TryStreamExt as _};
331-
pub use crate::sink::{self, Sink, SinkExt as _};
329+
pub use crate::future::{self, Future, TryFuture};
330+
pub use crate::stream::{self, Stream, TryStream};
331+
pub use crate::sink::{self, Sink};
332+
333+
#[doc(no_inline)]
334+
pub use crate::future::{FutureExt as _, TryFutureExt as _};
335+
#[doc(no_inline)]
336+
pub use crate::stream::{StreamExt as _, TryStreamExt as _};
337+
#[doc(no_inline)]
338+
pub use crate::sink::SinkExt as _;
332339

333340
#[cfg(feature = "std")]
334341
pub use crate::io::{
335342
AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead,
343+
};
344+
345+
#[cfg(feature = "std")]
346+
#[doc(no_inline)]
347+
pub use crate::io::{
336348
AsyncReadExt as _, AsyncWriteExt as _, AsyncSeekExt as _, AsyncBufReadExt as _,
337349
};
338350
}

0 commit comments

Comments
 (0)