From: Peter Jaszkowiak Date: Fri, 6 Nov 2020 02:26:08 +0000 (-0700) Subject: document HACKs X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8d48e3bbb2da2f5eb5f4a95efd6846e9ea93a160;p=rust.git document HACKs --- 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 @@ /// unwrapping the `BufReader` 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 @@ /// 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