Skip to content

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Nov 20, 2023

Fixes #10550.

As indicated in #10559, the underscore check should be removed.

changelog: remove underscore check for manual_non_exhaustive lint

r? @blyxyas

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 20, 2023
@GuillaumeGomez GuillaumeGomez force-pushed the manual_non_exhaustive-rm-underscore-check branch from 8c7c08e to 7cc506d Compare November 20, 2023 13:11
Copy link
Member

@blyxyas blyxyas left a comment

Choose a reason for hiding this comment

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

Shouldn't this check also be removed from line 121? Or am I missing something?

@GuillaumeGomez GuillaumeGomez force-pushed the manual_non_exhaustive-rm-underscore-check branch from 7cc506d to 91fc4b3 Compare November 22, 2023 12:42
@GuillaumeGomez
Copy link
Member Author

@blyxyas told me they're busy IRL for the next weeks so I'll assign someone else to prevent taking time from them (thanks for all your reviews!).

I applied the suggestion, thanks for that!

r? @flip1995

@rustbot rustbot assigned flip1995 and unassigned blyxyas Nov 22, 2023
@flip1995
Copy link
Member

I looked for the motivation behind checking for _ prefixes, but couldn't find any comments about this when this lint was implemented.

I also ran lintcheck for this on the top 400 crates. It triggered in 2 more cases. Both were legit:

proc-macro-error-1.0.4/src/diagnostic.rs:13:1
rustls-0.22.0-alpha.4/src/versions.rs:11:1

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Nov 22, 2023

📌 Commit 91fc4b3 has been approved by flip1995

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Nov 22, 2023

⌛ Testing commit 91fc4b3 with merge a72730e...

@bors
Copy link
Contributor

bors commented Nov 22, 2023

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

@bors bors merged commit a72730e into rust-lang:master Nov 22, 2023
@GuillaumeGomez GuillaumeGomez deleted the manual_non_exhaustive-rm-underscore-check branch November 22, 2023 13:49
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.

rustdoc: synthetic_non_exhaustive lint
5 participants