mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
`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.