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 committed Nov 18, 2023
1 parent 29f5d2c commit a3d9003
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 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,9 @@ 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 a3d9003

Please sign in to comment.