new build_helper::compiletest module for safer invocations of compiletest by bootstrap #135645
Labels
A-compiletest
Area: The compiletest test runner
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
currently bootstrap just uses strings to represent various compiletest arguments, such as mode.
obviously it would be better to use enums for these, as they are much less vulnerable to typos.
compiletest
already has enum definitions for these (incommon.rs
), and the two already have a shared dependency (build_helper
), andbuild_helper
already has access toserde
.i would be willing to work on this refactor, if people think it would be a good idea.
The text was updated successfully, but these errors were encountered: