Skip to content

Commit 9817589

Browse files
committed
rustbuild: make tidy happy
Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent 8f91a45 commit 9817589

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/tool.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,14 @@ macro_rules! tool_extended {
436436

437437
fn run($sel, $builder: &Builder) -> Option<PathBuf> {
438438
$extra_deps
439+
let toolstate = $builder.build.config.toolstate.$toolstate;
439440
$builder.ensure(ToolBuild {
440441
compiler: $sel.compiler,
441442
target: $sel.target,
442443
tool: $tool_name,
443444
mode: Mode::Librustc,
444445
path: $path,
445-
expectation: $builder.build.config.toolstate.$toolstate.passes(ToolState::Compiling),
446+
expectation: toolstate.passes(ToolState::Compiling),
446447
})
447448
}
448449
}

0 commit comments

Comments
 (0)