3 ms·
Part of the reasons lints are in clippy vs rustc, historically, is that clippy lints are more controversial or have too many false positives to live in rustc ju
by steveklabnik 5y ago
Part of the reasons lints are in clippy vs rustc, historically, is that clippy lints are more controversial or have too many false positives to live in rustc just yet. So it’s a trade off. If all clippy lints lived in rustc, people would trust the lints less overall.
- estebank 5y agoAnd as lints show their value in clippy, they do get uplifted to rustc when it makes sense.
- steveklabnik 5y agoYes, I should have mentioned, this, thank you!
- tialaramex 5y agoSure, while this (or any successor) has unavoidable false positives it needs to live in clippy and probably be default off. But I'd argue that correctness is so worthwhile that even if this (or an alternative) can be narrowed to merely avoidable false positives that's enough to justify an on-by-default correctness error.