]> git.lizzy.rs Git - rust.git/commitdiff
document HACKs
authorPeter Jaszkowiak <p.jaszkow@gmail.com>
Fri, 6 Nov 2020 02:26:08 +0000 (19:26 -0700)
committerPeter Jaszkowiak <p.jaszkow@gmail.com>
Fri, 6 Nov 2020 02:26:08 +0000 (19:26 -0700)
library/std/src/io/buffered/bufreader.rs
library/std/src/io/buffered/bufwriter.rs

index 777d376f99173a920b896228b03aadc94cb82f81..16c18d6e146455106f825690fe41a7af2c4d1cb2 100644 (file)
@@ -21,6 +21,7 @@
 /// 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
 ///
index a1face6443ae6a7510f4655b542a515e2e2870c3..067ed6ba7ff50fb972feab5e458e637e6752599a 100644 (file)
@@ -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