Skip to content

Commit 49b27f4

Browse files
committedNov 14, 2023
Auto merge of #117701 - lnicola:sync-from-ra, r=onur-ozkan,HKalbasi
Subtree update of `rust-analyzer` r? `@HKalbasi`
·
1.87.01.76.0
2 parents 8d57ad1 + 6ad73f5 commit 49b27f4

File tree

184 files changed

+15866
-3026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+15866
-3026
lines changed
 

‎src/bootstrap/src/core/build_steps/check.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,12 @@ impl Step for RustAnalyzer {
376376
let compiler = builder.compiler(builder.top_stage, builder.config.build);
377377
let target = self.target;
378378

379-
builder.ensure(Std::new(target));
379+
builder.ensure(Rustc::new(target, builder));
380380

381381
let mut cargo = prepare_tool_cargo(
382382
builder,
383383
compiler,
384-
Mode::ToolStd,
384+
Mode::ToolRustc,
385385
target,
386386
cargo_subcommand(builder.kind),
387387
"src/tools/rust-analyzer",
@@ -414,7 +414,7 @@ impl Step for RustAnalyzer {
414414
/// Cargo's output path in a given stage, compiled by a particular
415415
/// compiler for the specified target.
416416
fn stamp(builder: &Builder<'_>, compiler: Compiler, target: TargetSelection) -> PathBuf {
417-
builder.cargo_out(compiler, Mode::ToolStd, target).join(".rust-analyzer-check.stamp")
417+
builder.cargo_out(compiler, Mode::ToolRustc, target).join(".rust-analyzer-check.stamp")
418418
}
419419
}
420420
}

‎src/bootstrap/src/core/build_steps/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ impl Step for RustAnalyzer {
369369

370370
// We don't need to build the whole Rust Analyzer for the proc-macro-srv test suite,
371371
// but we do need the standard library to be present.
372-
builder.ensure(compile::Std::new(compiler, host));
372+
builder.ensure(compile::Rustc::new(compiler, host));
373373

374374
let workspace_path = "src/tools/rust-analyzer";
375375
// until the whole RA test suite runs on `i686`, we only run
@@ -378,7 +378,7 @@ impl Step for RustAnalyzer {
378378
let mut cargo = tool::prepare_tool_cargo(
379379
builder,
380380
compiler,
381-
Mode::ToolStd,
381+
Mode::ToolRustc,
382382
host,
383383
"test",
384384
crate_path,

0 commit comments

Comments
 (0)
Please sign in to comment.