Skip to content
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

Add machine applicable suggestion for needless_lifetimes #10222

Merged
merged 1 commit into from
Jan 31, 2023

Conversation

Alexendoo
Copy link
Member

changelog: [needless_lifetimes]: Add machine applicable suggestion

Fixes #9360

It doesn't make suggestions for async functions as the input lifetime spans are funky there

The examples in #5787 and #7271 no longer seem to FP this PR aside, I added tests for them rather than disabling the lint entirely for async functions, I don't know if there are further FPs there though

Closes #5787
Closes #7271

@rustbot
Copy link
Collaborator

rustbot commented Jan 23, 2023

r? @flip1995

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jan 23, 2023
@bors
Copy link
Collaborator

bors commented Jan 31, 2023

☔ The latest upstream changes (presumably #10257) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link
Member

@flip1995 flip1995 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those suggestions are awesome! And all without BytePos to create the spans. Great work!

@flip1995
Copy link
Member

r=me once rebased.

@Alexendoo
Copy link
Member Author

Thank you!

@bors r=flip1995

@bors
Copy link
Collaborator

bors commented Jan 31, 2023

📌 Commit 6a8b202 has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jan 31, 2023

⌛ Testing commit 6a8b202 with merge b5a4fa1...

@bors
Copy link
Collaborator

bors commented Jan 31, 2023

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: flip1995
Pushing b5a4fa1 to master...

@bors bors merged commit b5a4fa1 into rust-lang:master Jan 31, 2023
@Alexendoo Alexendoo deleted the needless-lifetime-suggestion branch January 31, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
4 participants