Skip to content

Enable bootstrapping from previous-previous release #36547

@brson

Description

@brson

Today rustc bootstraps from the previous release, and also from the current release. It would be useful though if it could bootstrap from the previous-previous release (e.g. 1.13 can be built from 1.11).

Consider that on a Linux distro that is keeping up with Rust releases, if you have their rustc package installed, you cannot build the Rust master branch with it.

It is not trivial to do this since bootstrapping requires unstable features, and those unstable features change periodically. It would probably require at least the following modifications:

  • Changes to the build system to detect the previous-previous version and set the bootstrap key as appropriate
  • New cfg values that indicate this scenario in order to get through the stage0 build
  • New CI builders that tested this configuration explicitly

cc @glandium @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.T-dev-toolsRelevant to the dev-tools subteam, 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