Open KiChjang opened 3 years ago
We can take a look at https://github.com/gww-parity/substrate_lints and determine whether it's possible to write it as a lint.
Rewriting as a lint does not make sense; the goal here is to improve compiler error messages, lints are specifically designed to catch logical bugs, or bugs that were not caught by the compiler checks.
paritytech/substrate#9097 is one possible solution, but it (ab)uses
#[deprecated]
as a means to issue a custom warning message, which is not ideal.