about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Jaszkowiak <p.jaszkow@gmail.com>2020-11-05 19:26:08 -0700
committerPeter Jaszkowiak <p.jaszkow@gmail.com>2020-11-05 19:26:08 -0700
commit8d48e3bbb2da2f5eb5f4a95efd6846e9ea93a160 (patch)
treebeb6ae064c573c1051dca724617885177a4e5e2b
parentfe6dfcd28a9cbb8080313433a825cdec7b6a78b3 (diff)
downloadrust-8d48e3bbb2da2f5eb5f4a95efd6846e9ea93a160.tar.gz
rust-8d48e3bbb2da2f5eb5f4a95efd6846e9ea93a160.zip
document HACKs
-rw-r--r--library/std/src/io/buffered/bufreader.rs1
-rw-r--r--library/std/src/io/buffered/bufwriter.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/io/buffered/bufreader.rs b/library/std/src/io/buffered/bufreader.rs
index 777d376f991..16c18d6e146 100644
--- a/library/std/src/io/buffered/bufreader.rs
+++ b/library/std/src/io/buffered/bufreader.rs
@@ -21,6 +21,7 @@ use crate::io::{self, BufRead, Initializer, IoSliceMut, Read, Seek, SeekFrom, DE
 /// unwrapping the `BufReader<R>` with [`BufReader::into_inner`] can also cause
 /// data loss.
 ///
+// HACK(#78696): can't use `crate` for associated items
 /// [`TcpStream::read`]: super::super::super::net::TcpStream::read
 /// [`TcpStream`]: crate::net::TcpStream
 ///
diff --git a/library/std/src/io/buffered/bufwriter.rs b/library/std/src/io/buffered/bufwriter.rs
index a1face6443a..067ed6ba7ff 100644
--- a/library/std/src/io/buffered/bufwriter.rs
+++ b/library/std/src/io/buffered/bufwriter.rs
@@ -59,6 +59,7 @@ use crate::io::{
 /// together by the buffer and will all be written out in one system call when
 /// the `stream` is flushed.
 ///
+// HACK(#78696): can't use `crate` for associated items
 /// [`TcpStream::write`]: super::super::super::net::TcpStream::write
 /// [`TcpStream`]: crate::net::TcpStream
 /// [`flush`]: BufWriter::flush