Skip to content

Conversation

@junyang-zh
Copy link

changelog: [duplicate_trait_bonds]: Added [duplicate_trait_bonds] to style


Hi, I've noticed that rustc doesn't complain about duplicate trait bonds like where T: Sync + Sync, which is ood to me. I once written such duplicate bonds in development of https://github.com/asterinas/asterinas when I used find & replace tools to refactor code. Therefore I assume someone else could introduce duplicate trait bonds like me.

I am new to clippy development and feel free to suggest anything about this proposal!

@rustbot rustbot added needs-fcp S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Nov 14, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 14, 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

@github-actions
Copy link

Lintcheck changes for 86dbf96

Lint Added Removed Changed
clippy::duplicate_trait_bonds 25 0 0

This comment will be updated if you push new changes

@junyang-zh
Copy link
Author

I find it duplicate with trait_duplication_in_bounds, closing.

@junyang-zh junyang-zh closed this Nov 14, 2025
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants