We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0dfdc6 commit 2c3024bCopy full SHA for 2c3024b
src/libstd/io/buffered.rs
@@ -1766,6 +1766,15 @@ mod tests {
1766
}
1767
1768
1769
+ /// Previously the `LineWriter` could successfully write some bytes but
1770
+ /// then fail to report that it has done so. Additionally, an erroneous
1771
+ /// flush after a successful write was permanently ignored.
1772
+ ///
1773
+ /// Test that a line writer correctly reports the number of written bytes,
1774
+ /// and that it attempts to flush buffered lines from previous writes
1775
+ /// before processing new data
1776
1777
+ /// Regression test for #37807
1778
#[test]
1779
fn erroneous_flush_retried() {
1780
let a = AcceptOneThenFail { written: false, flushed: false };
0 commit comments