Add RLS and Rustfmt to the toolstate mechanism

This commit is contained in:
Nick Cameron
2017-09-22 14:41:22 +12:00
committed by Alex Crichton
parent c0ea270f70
commit bfcb290937
4 changed files with 21 additions and 4 deletions
+10 -2
View File
@@ -254,7 +254,11 @@ fn run(self, builder: &Builder) {
builder.add_rustc_lib_path(compiler, &mut cargo);
try_run(build, &mut cargo);
try_run_expecting(
build,
&mut cargo,
builder.build.config.toolstate.rls.passes(ToolState::Testing),
);
}
}
@@ -295,7 +299,11 @@ fn run(self, builder: &Builder) {
builder.add_rustc_lib_path(compiler, &mut cargo);
try_run(build, &mut cargo);
try_run_expecting(
build,
&mut cargo,
builder.build.config.toolstate.rustfmt.passes(ToolState::Testing),
);
}
}
+2 -2
View File
@@ -454,7 +454,7 @@ fn run(self, builder: &Builder) -> PathBuf {
tool: "rls",
mode: Mode::Librustc,
path: "src/tools/rls",
expectation: BuildExpectation::None,
expectation: builder.build.config.toolstate.rls.passes(ToolState::Compiling),
})
}
}
@@ -489,7 +489,7 @@ fn run(self, builder: &Builder) -> PathBuf {
tool: "rustfmt",
mode: Mode::Librustc,
path: "src/tools/rustfmt",
expectation: BuildExpectation::None,
expectation: builder.build.config.toolstate.rustfmt.passes(ToolState::Compiling),
})
}
}
+2
View File
@@ -46,4 +46,6 @@ fn default() -> Self {
pub struct ToolStates {
pub miri: ToolState,
pub clippy: ToolState,
pub rls: ToolState,
pub rustfmt: ToolState,
}
+7
View File
@@ -27,3 +27,10 @@ miri = "Broken"
# ping @Manishearth @llogiq @mcarton @oli-obk
clippy = "Broken"
# ping @nrc
rls = "Testing"
# ping @nrc
rustfmt = "Testing"