[rustdoc] Create output file after we checked that the standalone markdown file is valid - #160576
Merged
rust-bors[bot] merged 2 commits intoAug 6, 2026
Merged
Conversation
Urgau
approved these changes
Aug 5, 2026
GuillaumeGomez
force-pushed
the
rustdoc-standalone-md
branch
from
August 5, 2026 15:45
f5e287f to
0f71ea5
Compare
fmease
reviewed
Aug 5, 2026
GuillaumeGomez
force-pushed
the
rustdoc-standalone-md
branch
from
August 5, 2026 17:18
0f71ea5 to
1de2daa
Compare
Member
Author
|
@bors r=Urgau,fmease rollup |
Contributor
rust-bors Bot
pushed a commit
that referenced
this pull request
Aug 5, 2026
…uwer Rollup of 12 pull requests Successful merges: - #159014 ([rustdoc] Do not take `doc(cfg())` into account when filtering doctests) - #159029 (rustc_llvm: Emit module summaries when using -Clto=fat) - #160574 (Update rustc-perf submodule) - #154585 (treat no_mangle_generic_items as hard error instead of lint warning) - #159473 (Fix, simplify, and document doc meta finalize mode) - #157489 (Add CoerceShared field-wise reborrow WF checks) - #160532 (Add Enzyme bugfix to support rust+llvm23) - #160545 (Reorder the methods in `#[rustc_must_implement_one_of]`) - #160558 (Revert "codegen_ssa: no dbginfo for scalable vec local w/ `-O0`") - #160566 (Re-enable bool indexing assembly test for LLVM 23) - #160569 (Remove `OnDuplicate::Custom`) - #160576 ([rustdoc] Create output file after we checked that the standalone markdown file is valid)
rust-timer
added a commit
that referenced
this pull request
Aug 6, 2026
Rollup merge of #160576 - GuillaumeGomez:rustdoc-standalone-md, r=Urgau,fmease [rustdoc] Create output file after we checked that the standalone markdown file is valid This PR makes the creation of the output (HTML) file after we checked that the input markdown is valid to prevent the output file content to be truncated ([`File::create` doc](https://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.create)) in any case. r? @Urgau
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes the creation of the output (HTML) file after we checked that the input markdown is valid to prevent the output file content to be truncated (
File::createdoc) in any case.r? @Urgau