

Extend `trait_duplication_in_bounds` to cover trait objects by john-h-k · Pull R...
source link: https://github.com/rust-lang/rust-clippy/pull/10727
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation
Contributor
This PR extends trait_duplication_in_bounds
to cover trait objects.
Currently,
fn foo(_a: &(dyn Any + Send + Send)) {}
generates no warnings. With this PR, it will complain about a duplicate trait and can remove it
Moved from rust-lang/rust#110991
changelog: [trait_duplication_in_bounds
]: warn on duplicate trait object constraints
Collaborator
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Manishearth (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK