Skip to content

Commit 8d48e3b

Browse files
committed
document HACKs
1 parent fe6dfcd commit 8d48e3b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ 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+
// HACK(#78696): can't use `crate` for associated items
2425
/// [`TcpStream::read`]: super::super::super::net::TcpStream::read
2526
/// [`TcpStream`]: crate::net::TcpStream
2627
///

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

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ 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+
// HACK(#78696): can't use `crate` for associated items
6263
/// [`TcpStream::write`]: super::super::super::net::TcpStream::write
6364
/// [`TcpStream`]: crate::net::TcpStream
6465
/// [`flush`]: BufWriter::flush

0 commit comments

Comments
 (0)