Open
Description
We generally prefer library features to be tested as unit tests, not ui tests: this clearly separates things testing the compiler from things testing the library, and also ui tests are easier and faster to run and they are formatted, checked, and linted together with the rest of the library more easily. Also our unit tests are actually run by Miri, but ui tests are not (and it's much harder to do so).
AFAIK some existing tests have already been converted, but I don't know if this was ever done systematically.
- Identify which parts of the ui test suite are really just testing the library
- Convert them to regular unit tests if possible
- it might not be possible for deliberately failing tests -- some of them might become
compile_fail
doc tests, but this does not always make sense
- it might not be possible for deliberately failing tests -- some of them might become
- Properly document this policy and find some way to reduce the chance of new such tests being added
Cc @rust-lang/libs -- AFAIK this has already been policy for a while? @thomcc said there is no tracking issue though so here we go. :D