Rollup merge of #122378 - clubby789:rustbook-rebuild, r=onur-ozkan
Properly rebuild rustbooks Fixes #122367 If the book was out of date but the tool was up to date, this would evaluate to `!(false || true)` == `!true` == `false` and not rebuild.
This commit is contained in:
commit
cf3d178e2d
1 changed files with 2 additions and 1 deletions
|
@ -145,7 +145,8 @@ impl<P: Step> Step for RustbookSrc<P> {
|
|||
let rustbook = builder.tool_exe(Tool::Rustbook);
|
||||
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
|
||||
|
||||
if !builder.config.dry_run() && !(up_to_date(&src, &index) || up_to_date(&rustbook, &index))
|
||||
if !builder.config.dry_run()
|
||||
&& (!up_to_date(&src, &index) || !up_to_date(&rustbook, &index))
|
||||
{
|
||||
builder.info(&format!("Rustbook ({target}) - {name}"));
|
||||
let _ = fs::remove_dir_all(&out);
|
||||
|
|
Loading…
Add table
Reference in a new issue