-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Tidying up UI tests [7/N] #149473
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: main
Are you sure you want to change the base?
Tidying up UI tests [7/N] #149473
Conversation
tests/ui/invalid-module-declaration/invalid-module-declaration.rs duplicated of tests/ui/modules/missing_non_modrs_mod_inline.rs
|
This PR modifies |
| struct Bar<'a> { | ||
| data: &'a [u8], | ||
| } | ||
|
|
||
| impl<'a> Bar<'a> { | ||
| fn bar(self: &mut Bar) { | ||
| //~^ ERROR mismatched `self` parameter type | ||
| //~| NOTE expected struct `Bar<'a>` | ||
| //~| NOTE found struct `Bar<'_>` | ||
| //~| NOTE lifetime mismatch | ||
| //~| ERROR mismatched `self` parameter type | ||
| //~| NOTE expected struct `Bar<'a>` | ||
| //~| NOTE found struct `Bar<'_>` | ||
| //~| NOTE lifetime mismatch | ||
| } |
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.
I merged tests/ui/issues/issue-17740.rs with tests/ui/lifetimes/explicit-self-lifetime-mismatch.rs to organize them. Is that okay? If you think it's unnecessary, I'll revert it.
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.
I'm not sure exactly where this test would be best placed. I've also considered placing it in tests/ui/panic, but where would be a good place?
Note
Intermediate commits are intended to help review, but will be squashed add comment commit prior to merge.
part of #133895
removed directory
tests/ui/explicit,tests/ui/interior-mutability,tests/ui/invalid-module-declaration, tests/ui/invalid-self-argument`r? Kivooeo