Skip to content

Commit a3d9003

Browse files
notriddleonur-ozkan
andcommitted
Do not call dry_run twice
Co-authored-by: Onur Özkan <[email protected]>
1 parent 29f5d2c commit a3d9003

File tree

1 file changed

+3
-2
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+3
-2
lines changed

src/bootstrap/src/core/build_steps/doc.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,9 @@ impl Step for Releases {
445445
|| !up_to_date(&footer, &html)
446446
|| !up_to_date(&favicon, &html)
447447
|| !up_to_date(&full_toc, &html)
448-
|| !(builder.config.dry_run() || up_to_date(&version_info, &html))
449-
|| !(builder.config.dry_run() || up_to_date(&rustdoc, &html))
448+
|| !(builder.config.dry_run()
449+
|| up_to_date(&version_info, &html)
450+
|| up_to_date(&rustdoc, &html))
450451
{
451452
let mut tmpfile = t!(fs::File::create(&tmppath));
452453
t!(tmpfile.write_all(b"% Rust Release Notes\n\n"));

0 commit comments

Comments
 (0)