x.py test --stage 0 src/test/ui should give an error #77711
Labels
A-contributor-roadblock
Area: Makes things more difficult for new contributors to rust itself
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Consider someone working with the standard library and running a UI test for the first time. Their workflow up until now has been
This is correct: it builds the standard library once and the compiler zero times. Any changes they make will be reflected in the tests.
Now assume for some reason they have to run a UI test; maybe they change a
rustc_on_unimplemented
diagnostic so the .stderr files need to change. They've been using --stage 0 so far, and they really don't want to build the compiler, so they try the same thing on the new test suite:This is incorrect: it builds neither the standard library nor the compiler and runs tests on beta instead.
Unfortunately, the errors this gives are incomprehensible: they say things like
which give absolutely no indication that you're running the wrong version of the compiler (maybe you'd even think it's caused by your change!)
Instead, x.py should give an error like this:
The text was updated successfully, but these errors were encountered: