Skip to content

x.py check doesn't allow checking tools other than clippy and rustdoc #80639

Description

@jyn514

I tried this code:

x.py check src/tools/rustfmt

I expected to see this happen: x.py checks rustfmt

Instead, this happened:

thread 'main' panicked at 'error: no rules matched src/tools/rustfmt', src/bootstrap/builder.rs:225:17

Note I am not asking for the default x.py check to be changed at all, just for it to be possible to check rustfmt in-tree. Right now you have to use x.py build --stage 1 src/tools/rustfmt which compiles the compiler 3 times (two of them unnecessarily - rustfmt uses rustc_ap_*, not the compiler in-tree).

Meta

HEAD is currently 18d855b.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions