Open
Description
Our documentation, how to add a lint, uses an EarlyLintPass
for the example lint. However, most new lints use the LateLintPass
since they need type information from rustc. Since the LateLintPass
is the main one used for new lint, I suggest updating the documentation to focus on that pass and to update the cargo dev new_lint
tool to use the LateLintPass
by default.
Related discussion on Zulip: https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Meeting.202022-08-09/near/292596176
I'll wait a bit until I do these changes, to potentially get additional feedback, but also because I don't have that much time rn 😅 🙃