Skip to content

Add consistent feature gating for bootstrap #102600

Open
@jyn514

Description

@jyn514

Currently, we have a several "best-effort" features in bootstrap, which aren't really supported, but we have code for since they're impossible to do otherwise. x.py fix, x.py clippy, and x.py test --stage 0 src/test/ui are some examples. Currently, only the last one has a feature gate: by default it gives a hard error ("this tests the beta compiler, you probably don't want that") but it lets you override that with COMPILETEST_FORCE_STAGE0=1. We should extend that to other parts of bootstrap, and use a consistent mechanism to enable the features - @Mark-Simulacrum suggested something like bootstrap-features = ["xyz"] in config.toml.

Metadata

Metadata

Assignees

Labels

S-blockedStatus: Blocked on something else such as an RFC or other implementation work.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