Rollup merge of #127659 - saethlin:manually-drop-bufwriter, r=joboet

Use ManuallyDrop in BufWriter::into_parts

The fact that `mem::forget` takes by value means that it interacts very poorly with Stacked Borrows; generally users think of calling it as a no-op, but in Stacked Borrows, the field retagging tends to cause surprise tag invalidation.
This commit is contained in:
Jubilee 2024-07-13 20:19:47 -07:00 committed by GitHub
commit 9ca944878d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

Diff content is not available