Cleanup: Migrate run-fail tests in src/test/ui from error-pattern to check-run-results #65865
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As tests are moved from
src/test/run-fail
tosrc/test/ui
#65440 the meaningof
// error-pattern
in ui tests becomes overloaded , since tests insrc/test/run-fail
match error patterns to executable output whilesrc/test/ui
tests match them to compiler output.The changes in #65759 enable such overloaded use: if test is expected to
compile successfully and will be run, the patterns are matched to executable
output, otherwise patterns are matched to the compiler output.
@petrochenkov suggested that it might be preferable to migrate those test to use check-run-result instead.
The text was updated successfully, but these errors were encountered: