mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
a526d7ce45
Always set `result` during `finish()` in debug builders Most functions for format builders set `self.result` after writing strings. This ensures that any further writing fails immediately rather than trying to write again. A few `.finish()` methods and the `.finish_non_exhaustive` did have this same behavior, so update the remaining `.finish()` methods to make it consistent here.