Add consistent feature gating for bootstrap #102600
Labels
S-blocked
Status: Blocked on something else such as an RFC or other implementation work.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
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
, andx.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 likebootstrap-features = ["xyz"]
in config.toml.The text was updated successfully, but these errors were encountered: