Skip to content

Commit

Permalink
Do not call dry_run twice
Browse files Browse the repository at this point in the history
Co-authored-by: Onur Özkan <[email protected]>
  • Loading branch information
notriddle and onur-ozkan authored Nov 18, 2023
1 parent 29f5d2c commit c59660c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bootstrap/src/core/build_steps/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,7 @@ impl Step for Releases {
|| !up_to_date(&footer, &html)
|| !up_to_date(&favicon, &html)
|| !up_to_date(&full_toc, &html)
|| !(builder.config.dry_run() || up_to_date(&version_info, &html))
|| !(builder.config.dry_run() || up_to_date(&rustdoc, &html))
|| !(builder.config.dry_run() || up_to_date(&version_info, &html) || up_to_date(&rustdoc, &html))
{
let mut tmpfile = t!(fs::File::create(&tmppath));
t!(tmpfile.write_all(b"% Rust Release Notes\n\n"));
Expand Down

0 comments on commit c59660c

Please sign in to comment.