Closed
Description
So I raised this on rust-lang/rust#58471 and it was suggested this is better as a clippy lint so pasting the issue text here for quick reference:
My where clauses in traits recently had some unnecessary noise that the compiler could warn against:
What I was doing:
impl<T> SomeTrait<T> where T: Clone, T: DebugWhat I should have been doing:
impl<T> SomeTrait<T> where T: Clone + DebugI'd be happy to implement this myself if there's a consensus on adding this as a warning, though I may > need some mentoring 👍
The offer to help with a PR myself still stands, I had a quick check of the lints and didn't spot it.