Skip to content

Fix off-by-one-error in stage numbering between rustc-guide and rustbuild #57963

Closed
@dwijnand

Description

@dwijnand

The rustc guide states that:

  • Stage 0: the stage0 compiler is usually the current beta compiler
    (x.py will download it for you); you can configure x.py to use something
    else, though.
  • Stage 1: the code in your clone (for new version) is then
    compiled with the stage0 compiler to produce the stage1 compiler.

However a run of rustbuild like so ./x.py build --stage 0 outputs:

Building stage0 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Building stage0 test artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Building stage0 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
[etc]

Personally I think the guide makes more sense. However fixing rustbuild would mean that --stage 1 would become --stage 2 (and so forth).

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-infraRelevant to the infrastructure 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