Skip to content

Commit b76036c

Browse files
committed
Auto merge of rust-lang#134848 - Zalathar:check-compiletest, r=jieyouxu
bootstrap: Allow `./x check compiletest` Did you know that bootstrap didn't support `./x check compiletest`? Well, now it does! Manually add `"compiletest"` to your `rust-analyzer.check.overrideCommand` check command to get error/warning integration when modifying compiletest.
2 parents 8742e05 + c1c2d85 commit b76036c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: src/bootstrap/src/core/build_steps/check.rs

+3
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ tool_check_step!(
501501
);
502502

503503
tool_check_step!(Bootstrap, "bootstrap", "src/bootstrap", SourceType::InTree, false);
504+
// Compiletest is implicitly "checked" when it gets built in order to run tests,
505+
// so this is mainly for people working on compiletest to run locally.
506+
tool_check_step!(Compiletest, "compiletest", "src/tools/compiletest", SourceType::InTree, false);
504507

505508
/// Cargo's output path for the standard library in a given stage, compiled
506509
/// by a particular compiler for the specified target.

Diff for: src/bootstrap/src/core/builder/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ impl<'a> Builder<'a> {
905905
check::RustAnalyzer,
906906
check::TestFloatParse,
907907
check::Bootstrap,
908+
check::Compiletest,
908909
),
909910
Kind::Test => describe!(
910911
crate::core::build_steps::toolstate::ToolStateCheck,

0 commit comments

Comments
 (0)