Rollup merge of #85051 - jyn514:check-miri, r=Mark-Simulacrum
Allow checking miri and RLS with `x.py check src/tools/{miri,rls}`
Helps with https://github.com/rust-lang/rust/issues/80639.
`@Xanewok` would you find this useful for RLS too?
This commit is contained in:
commit
d501042cc3
2 changed files with 6 additions and 1 deletions
|
|
@ -377,6 +377,8 @@ impl<'a> Builder<'a> {
|
|||
check::Rustdoc,
|
||||
check::CodegenBackend,
|
||||
check::Clippy,
|
||||
check::Miri,
|
||||
check::Rls,
|
||||
check::Bootstrap
|
||||
),
|
||||
Kind::Test => describe!(
|
||||
|
|
|
|||
|
|
@ -289,7 +289,8 @@ macro_rules! tool_check_step {
|
|||
impl Step for $name {
|
||||
type Output = ();
|
||||
const ONLY_HOSTS: bool = true;
|
||||
const DEFAULT: bool = true $( && $default )?;
|
||||
// don't ever check out-of-tree tools by default, they'll fail when toolstate is broken
|
||||
const DEFAULT: bool = matches!($source_type, SourceType::InTree) $( && $default )?;
|
||||
|
||||
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
|
||||
run.paths(&[ $path, $($alias),* ])
|
||||
|
|
@ -367,6 +368,8 @@ tool_check_step!(Rustdoc, "src/tools/rustdoc", "src/librustdoc", SourceType::InT
|
|||
// behavior, treat it as in-tree so that any new warnings in clippy will be
|
||||
// rejected.
|
||||
tool_check_step!(Clippy, "src/tools/clippy", SourceType::InTree);
|
||||
tool_check_step!(Miri, "src/tools/miri", SourceType::Submodule);
|
||||
tool_check_step!(Rls, "src/tools/rls", SourceType::Submodule);
|
||||
|
||||
tool_check_step!(Bootstrap, "src/bootstrap", SourceType::InTree, false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue