Skip to content

Conversation

@teofr
Copy link
Contributor

@teofr teofr commented Sep 10, 2025

Have as_underscore only make a suggestion when the type is suggestable.

changelog: [as_underscore]: Don't suggest a fix if the type is not suggestable

Fixes #15282

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 10, 2025
@rustbot
Copy link
Collaborator

rustbot commented Sep 10, 2025

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

@teofr
Copy link
Contributor Author

teofr commented Sep 10, 2025

Some notes:

  • I minimized the example from the issue, since a lot of it wasn't part of the bug
  • I separated the tests into two, since I couldn't find a way to tell cargo to expect some lints to be unfixable, only at the file level

Copy link
Member

@Alexendoo Alexendoo left a comment

Choose a reason for hiding this comment

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

@Alexendoo Alexendoo added this pull request to the merge queue Sep 12, 2025
Merged via the queue into rust-lang:master with commit af7fa53 Sep 12, 2025
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 12, 2025
@teofr teofr deleted the issue-15282 branch October 15, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

as_underscore async closure suggestion tricky

3 participants