Closed nazar-pc closed 2 months ago
In my opinion, that clippy lint is not valuable to try to address in macro-generated code. It would be better to turn off the lint in the specific impl that is triggering it.
Can't suppress until the project increases their minimum Rust version to 1.78 or else another warning will be printed, but fair enough.
As a user of the library that leverages
syn
I was hitting https://rust-lang.github.io/rust-clippy/master/index.html#/multiple_bound_locations in generated code and I think there is an opportunity to improve this by making sureGenerics::split_for_impl
moves all generic bounds into where clause.Not 100% sure if
syn
itself is the right place to fix this, but decided to report this anyway in case it is helpful.