rustbuild: make tidy happy

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
This commit is contained in:
Marc-Antoine Perennou 2017-11-16 11:26:45 +01:00
parent 8f91a45e48
commit 98175892b0

View file

@ -436,13 +436,14 @@ macro_rules! tool_extended {
fn run($sel, $builder: &Builder) -> Option<PathBuf> {
$extra_deps
let toolstate = $builder.build.config.toolstate.$toolstate;
$builder.ensure(ToolBuild {
compiler: $sel.compiler,
target: $sel.target,
tool: $tool_name,
mode: Mode::Librustc,
path: $path,
expectation: $builder.build.config.toolstate.$toolstate.passes(ToolState::Compiling),
expectation: toolstate.passes(ToolState::Compiling),
})
}
}