-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make single_range_in_vec_init
ignore type annotations, fn arguments and ExprField
s
#11088
Conversation
r? @Alexendoo (rustbot has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #11095) made this pull request unmergeable. Please resolve the merge conflicts. |
single_range_in_vec_init
ignore type annotations and fn argumentssingle_range_in_vec_init
ignore type annotations, fn arguments and ExprField
s
#11166 could be useful here |
☔ The latest upstream changes (presumably #11239) made this pull request unmergeable. Please resolve the merge conflicts. |
#11166 was merged, let's use that here |
Hey this is triage, I'm closing this due to inactivity. Currently, @Centri3 sadly doesn't have the time to continue this implementation. If anyone is interested in continuing this PR, you're more than welcome to create a new PR and push it over the finish line. :D Thank you to @Centri3 and the reviewers for the time, that you already put into this! @rustbot label +S-inactive-closed -S-waiting-on-author -S-waiting-on-review |
Removing inactive closed in favor of #12611 |
Closes #11086
This still lints if it's a local and used in a function, as ignoring that would be very hard and very slow, but it now gives a note to give type annotations if this is intended.
changelog: Enhancement: [
single_range_in_vec_init
]: Ignores if it's a local that has type annotations, or is immediately passed to a function or struct initializer