Skip to content

Inconsistency between Clippy and Rustdoc build stages #92538

Description

@Aaron1011

If I run:

./x.py build src/tools/rustdoc --stage 1

Then I get a rustdoc built against my local stage1 compiler

However, if I run:

./x.py build src/tools/clippy --stage 1

Then bootstrap will attempt to build a stage2 compiler, and compile Clippy against it. In order to get the same result as with Rustdoc, I need to use ./x.py build src/tools/clippy --stage 0

As far as I know, both Clippy and Rustdoc are both the same 'kind' of tool (they are a frontend that runs some of the compiler's passes), so --stage N should give the same result with both of them.

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

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-clippyRelevant to the Clippy team.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions