Closed
Description
As tests are moved from src/test/run-fail
to src/test/ui
#65440 the meaning
of // error-pattern
in ui tests becomes overloaded , since tests in
src/test/run-fail
match error patterns to executable output while
src/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.
- Decide if check-run-result is preferable over error-pattern for run-fail tests in ui.
- Migrate run fail tests to use check-run-result.
- Remove support for overloaded meaning of error-pattern.
Metadata
Metadata
Assignees
Labels
Area: The compiletest test runnerArea: The testsuite used to check the correctness of rustcCategory: PRs that clean code up or issues documenting cleanup.Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Status
Done