Skip to content

Conversation

@samueltardieu
Copy link
Member

Fixes #10371

changelog: FP: [use_self]: do not suggest using Self in const generic parameters

@rustbot
Copy link
Collaborator

rustbot commented Feb 19, 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 Feb 19, 2023
@samueltardieu
Copy link
Member Author

samueltardieu commented Feb 19, 2023

Visiting all generic parameters using a SkipTyCollector on them is also possible, but even though it would pass the tests it would be too broad as Self can be used in the constraints of generic parameters. This is why I limited myself to filtering out const generic types.

@samueltardieu
Copy link
Member Author

r? @Manishearth

@flip1995 seems to be away or busy

@rustbot rustbot assigned Manishearth and unassigned flip1995 Feb 26, 2023
@Manishearth
Copy link
Member

@bors r+

thanks!

@bors
Copy link
Contributor

bors commented Feb 26, 2023

📌 Commit f531abc has been approved by Manishearth

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 26, 2023

⌛ Testing commit f531abc with merge e1ac133...

@bors
Copy link
Contributor

bors commented Feb 26, 2023

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

1 similar comment
@bors
Copy link
Contributor

bors commented Feb 26, 2023

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

@bors bors merged commit e1ac133 into rust-lang:master Feb 26, 2023
@samueltardieu samueltardieu deleted the issue-10371 branch March 5, 2023 19:18
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.

clippy::use_self lints on const generic impl`s, where they can't be used.

5 participants