-
Notifications
You must be signed in to change notification settings - Fork 13.6k
UI test suite clarity changes: Rename tests/ui/SUMMARY.md
and update rustc dev guide on error-pattern
#144340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, a wording nit, r=me otherwise.
For compile time tests, it should be preferred to using `error-pattern`, which | ||
is imprecise and non-exhaustive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: this might be worded a bit confusingly, maybe
For tests wishing to match against compiler diagnostics, error annotations should be preferred over
//@ error-pattern
,//@ error-pattern
is imprecise and non-exhaustive.
@bors delegate+ rollup |
✌️ @Oneirical, you can now approve this pull request! If @jieyouxu told you to " |
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
☔ The latest upstream changes (presumably #144360) made this pull request unmergeable. Please resolve the merge conflicts. |
To match convention, rename
tests/ui/SUMMARY.md
totests/ui/README.md
.Also, remove misleading lines in the rustc development guide about
error-pattern
being "not recommended", when it really is just a last resort which should be used in the niche situations where it is useful.r? @jieyouxu