diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-11-07 01:02:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-07 01:02:03 +0900 |
| commit | 0e71fc75ccfe577033345dcc478e98503d71831f (patch) | |
| tree | 1fe9c09bb52e8d3510c7762c79fe0b1b7a027ce7 | |
| parent | 4136ed26a12419f8fe279534ecbbbf4fe743336d (diff) | |
| parent | 8d48e3bbb2da2f5eb5f4a95efd6846e9ea93a160 (diff) | |
| download | rust-0e71fc75ccfe577033345dcc478e98503d71831f.tar.gz rust-0e71fc75ccfe577033345dcc478e98503d71831f.zip | |
Rollup merge of #78006 - pitaj:master, r=jyn514
Use Intra-doc links for std::io::buffered Helps with #75080. I used the implicit link style for intrinsics, as that was what `minnumf32` and others already had. ``@rustbot`` modify labels: T-doc, A-intra-doc-links r? ``@jyn514``
| -rw-r--r-- | library/std/src/io/buffered/bufreader.rs | 3 | ||||
| -rw-r--r-- | library/std/src/io/buffered/bufwriter.rs | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/library/std/src/io/buffered/bufreader.rs b/library/std/src/io/buffered/bufreader.rs index 8fe29f08a7b..16c18d6e146 100644 --- a/library/std/src/io/buffered/bufreader.rs +++ b/library/std/src/io/buffered/bufreader.rs @@ -21,7 +21,8 @@ use crate::io::{self, BufRead, Initializer, IoSliceMut, Read, Seek, SeekFrom, DE /// unwrapping the `BufReader<R>` with [`BufReader::into_inner`] can also cause /// data loss. /// -/// [`TcpStream::read`]: Read::read +// HACK(#78696): can't use `crate` for associated items +/// [`TcpStream::read`]: super::super::super::net::TcpStream::read /// [`TcpStream`]: crate::net::TcpStream /// /// # Examples diff --git a/library/std/src/io/buffered/bufwriter.rs b/library/std/src/io/buffered/bufwriter.rs index 3ec272fea66..067ed6ba7ff 100644 --- a/library/std/src/io/buffered/bufwriter.rs +++ b/library/std/src/io/buffered/bufwriter.rs @@ -59,9 +59,10 @@ use crate::io::{ /// together by the buffer and will all be written out in one system call when /// the `stream` is flushed. /// -/// [`TcpStream::write`]: Write::write +// HACK(#78696): can't use `crate` for associated items +/// [`TcpStream::write`]: super::super::super::net::TcpStream::write /// [`TcpStream`]: crate::net::TcpStream -/// [`flush`]: Write::flush +/// [`flush`]: BufWriter::flush #[stable(feature = "rust1", since = "1.0.0")] pub struct BufWriter<W: Write> { inner: Option<W>, |
