diff options
| author | bors <bors@rust-lang.org> | 2024-07-27 02:26:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-27 02:26:30 +0000 |
| commit | a526d7ce45fd2284e0e7c7556ccba2425b9d25e5 (patch) | |
| tree | f931ea860cd1be69375166a426059c85e243e9f3 /src/librustdoc/fold.rs | |
| parent | 8b6b8574f6f2fcc71ec500a52d7bf74fdaff0ed6 (diff) | |
| parent | cc9da0b2ce36aea494760db78714dc98739949ef (diff) | |
| download | rust-a526d7ce45fd2284e0e7c7556ccba2425b9d25e5.tar.gz rust-a526d7ce45fd2284e0e7c7556ccba2425b9d25e5.zip | |
Auto merge of #127946 - tgross35:fmt-builders-set-result, r=cuviper
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.
Diffstat (limited to 'src/librustdoc/fold.rs')
0 files changed, 0 insertions, 0 deletions
