diff options
| author | Eric Huss <eric@huss.org> | 2022-08-20 21:19:43 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2022-08-27 21:36:08 -0700 |
| commit | 4a7e2fbb7bfdb7ddcb65b6fcf23bb5b272e66d42 (patch) | |
| tree | bb2f39474cc03d3f78f5838297432a2a6a9e301d /src/bootstrap/test.rs | |
| parent | 1e978a3627bd65064164af3548c585fb25eef9d2 (diff) | |
| download | rust-4a7e2fbb7bfdb7ddcb65b6fcf23bb5b272e66d42.tar.gz rust-4a7e2fbb7bfdb7ddcb65b6fcf23bb5b272e66d42.zip | |
Sunset RLS
Diffstat (limited to 'src/bootstrap/test.rs')
| -rw-r--r-- | src/bootstrap/test.rs | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 9cbdb3aca32..f1c2a21de59 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -300,57 +300,6 @@ impl Step for Cargo { } #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] -pub struct Rls { - stage: u32, - host: TargetSelection, -} - -impl Step for Rls { - type Output = (); - const ONLY_HOSTS: bool = true; - - fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { - run.path("src/tools/rls") - } - - fn make_run(run: RunConfig<'_>) { - run.builder.ensure(Rls { stage: run.builder.top_stage, host: run.target }); - } - - /// Runs `cargo test` for the rls. - fn run(self, builder: &Builder<'_>) { - let stage = self.stage; - let host = self.host; - let compiler = builder.compiler(stage, host); - - let build_result = - builder.ensure(tool::Rls { compiler, target: self.host, extra_features: Vec::new() }); - if build_result.is_none() { - eprintln!("failed to test rls: could not build"); - return; - } - - let mut cargo = tool::prepare_tool_cargo( - builder, - compiler, - Mode::ToolRustc, - host, - "test", - "src/tools/rls", - SourceType::Submodule, - &[], - ); - - cargo.add_rustc_lib_path(builder, compiler); - cargo.arg("--").args(builder.config.cmd.test_args()); - - if try_run(builder, &mut cargo.into()) { - builder.save_toolstate("rls", ToolState::TestPass); - } - } -} - -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub struct RustAnalyzer { stage: u32, host: TargetSelection, |
