mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
82bee96507
`BufWriter`: Make the soundness of `BorrowedBuf` usage clearer. The previous safety comment was outdated as it was written before `BorrowedBuf::set_init` was changed to be a boolean. It also failed to address the possibility that `flush_buf` invalidated the assumption.