Skip to content

Conversation

ada4a
Copy link
Contributor

@ada4a ada4a commented Sep 29, 2025

Fixes #6752

changelog: [should_implement_trait]: only suggest traits that are in the prelude

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

rustbot commented Sep 29, 2025

r? @samueltardieu

rustbot has assigned @samueltardieu.
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

@ada4a ada4a force-pushed the should_implement_trait branch 2 times, most recently from 19238d2 to 4095390 Compare September 29, 2025 00:10
Also put `SelfKind` into `lib.rs`, since it's shared with
`wrong_self_convention` -- not `utils.rs`, because it's not really a
utility function
@ada4a ada4a force-pushed the should_implement_trait branch from 4095390 to 2d2d143 Compare September 29, 2025 12:18
@samueltardieu samueltardieu added this pull request to the merge queue Sep 29, 2025
Merged via the queue into rust-lang:master with commit b05d55e Sep 29, 2025
11 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 29, 2025
@ada4a ada4a deleted the should_implement_trait branch September 29, 2025 22:48
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.

should_implement_trait triggers on from_iter methods even if FromIterator is implemented
3 participants