Skip to content

Commit 561d5ac

Browse files
committed
Fix occasional bootstrap panic in docs.
1 parent 70f9d23 commit 561d5ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl Step for RustbookSrc {
156156
let index = out.join("index.html");
157157
let rustbook = builder.tool_exe(Tool::Rustbook);
158158
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
159-
if up_to_date(&src, &index) && up_to_date(&rustbook, &index) {
159+
if builder.config.dry_run || up_to_date(&src, &index) && up_to_date(&rustbook, &index) {
160160
return;
161161
}
162162
builder.info(&format!("Rustbook ({}) - {}", target, name));

0 commit comments

Comments
 (0)