Skip to content

Commit 0e71fc7

Browse files
authored
Rollup merge of rust-lang#78006 - pitaj:master, r=jyn514
Use Intra-doc links for std::io::buffered Helps with rust-lang#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``
2 parents 4136ed2 + 8d48e3b commit 0e71fc7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

library/std/src/io/buffered/bufreader.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ use crate::io::{self, BufRead, Initializer, IoSliceMut, Read, Seek, SeekFrom, DE
2121
/// unwrapping the `BufReader<R>` with [`BufReader::into_inner`] can also cause
2222
/// data loss.
2323
///
24-
/// [`TcpStream::read`]: Read::read
24+
// HACK(#78696): can't use `crate` for associated items
25+
/// [`TcpStream::read`]: super::super::super::net::TcpStream::read
2526
/// [`TcpStream`]: crate::net::TcpStream
2627
///
2728
/// # Examples

library/std/src/io/buffered/bufwriter.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ use crate::io::{
5959
/// together by the buffer and will all be written out in one system call when
6060
/// the `stream` is flushed.
6161
///
62-
/// [`TcpStream::write`]: Write::write
62+
// HACK(#78696): can't use `crate` for associated items
63+
/// [`TcpStream::write`]: super::super::super::net::TcpStream::write
6364
/// [`TcpStream`]: crate::net::TcpStream
64-
/// [`flush`]: Write::flush
65+
/// [`flush`]: BufWriter::flush
6566
#[stable(feature = "rust1", since = "1.0.0")]
6667
pub struct BufWriter<W: Write> {
6768
inner: Option<W>,

0 commit comments

Comments
 (0)