Skip to content

Conversation

J-ZhengLi
Copy link
Member

@J-ZhengLi J-ZhengLi commented Oct 26, 2024

closes: #12338

I intend to fix this in #12421 but got distracted by some other problems in the same lint, delaying the process of closing the actual issue. So here's a separated PR that only focus on the issue and nothing else.


changelog: [infinite_loops]: fix suggestion error on async functions/closures

@rustbot
Copy link
Collaborator

rustbot commented Oct 26, 2024

r? @Alexendoo

rustbot has assigned @Alexendoo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 26, 2024
@J-ZhengLi J-ZhengLi changed the title [infinite_loops]: fix suggestion error on async functions/closures [infinite_loops]: fix incorrect suggestions on async functions/closures Oct 26, 2024

/// Return `true` if the given [`FnRetTy`] is never (!).
///
/// Note: This function also take care of return type of async fn,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// Note: This function also take care of return type of async fn,
/// Note: This function also takes care of the return type of async fn,

@Alexendoo
Copy link
Member

Thanks! Async fns strike again 👀

@bors r+

@bors
Copy link
Contributor

bors commented Nov 1, 2024

📌 Commit c4815ae has been approved by Alexendoo

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Nov 1, 2024

⌛ Testing commit c4815ae with merge e4dc892...

@bors
Copy link
Contributor

bors commented Nov 1, 2024

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

@bors bors merged commit e4dc892 into rust-lang:master Nov 1, 2024
8 checks passed
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
Development

Successfully merging this pull request may close these issues.

Incorrect infinite loop detection in async functions
5 participants