-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render documentation of lints #49416
Comments
We should definitely have such a thing. (maybe even extended to other things like compiler options?) I suggest to generate a markdown file which will then be converted into HTML by rustdoc. Taking a look at how clippy's generated its own file (if that's how it's done) would be a good idea too. |
@GuillaumeGomez Is this done now that lints are documented in the Rustc book? |
Yes, this is done. New lints should get new docs; if any are missing, feel free to open one issue per lint. |
This book? Where's the section on lints? |
It hits stable in the next release: https://doc.rust-lang.org/beta/rustc/lints/index.html (This is distinct from that book; that's the contribution guide, this is the user guide) |
Each of the Clippy lints is documented and the clippy docs are index (this one for the current version) that allows people to easily discover these lints. We should make the rustc built-in lints discoverable in this way as well.
The text was updated successfully, but these errors were encountered: