Skip to content

Commit b60cefe

Browse files
committed
Removed write_fmt forwarding, to fix recursive borrow issues
1 parent 358dc1d commit b60cefe

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/libstd/io/stdio.rs

-12
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,6 @@ impl Write for Stdout {
652652
fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
653653
self.lock().write_all(buf)
654654
}
655-
fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> io::Result<()> {
656-
self.lock().write_fmt(args)
657-
}
658655
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
659656
self.lock().write_all_vectored(bufs)
660657
}
@@ -680,9 +677,6 @@ impl Write for StdoutLock<'_> {
680677
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
681678
self.inner.borrow_mut().write_all_vectored(bufs)
682679
}
683-
fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> {
684-
self.inner.borrow_mut().write_fmt(fmt)
685-
}
686680
}
687681

688682
#[stable(feature = "std_debug", since = "1.16.0")]
@@ -838,9 +832,6 @@ impl Write for Stderr {
838832
fn write_all(&mut self, buf: &[u8]) -> io::Result<()> {
839833
self.lock().write_all(buf)
840834
}
841-
fn write_fmt(&mut self, args: fmt::Arguments<'_>) -> io::Result<()> {
842-
self.lock().write_fmt(args)
843-
}
844835
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
845836
self.lock().write_all_vectored(bufs)
846837
}
@@ -866,9 +857,6 @@ impl Write for StderrLock<'_> {
866857
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> io::Result<()> {
867858
self.inner.borrow_mut().write_all_vectored(bufs)
868859
}
869-
fn write_fmt(&mut self, fmt: fmt::Arguments<'_>) -> io::Result<()> {
870-
self.inner.borrow_mut().write_fmt(fmt)
871-
}
872860
}
873861

874862
#[stable(feature = "std_debug", since = "1.16.0")]

0 commit comments

Comments
 (0)