-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lint docs: Deprecated lints don't expand #4748
Labels
A-documentation
Area: Adding or improving documentation
A-website
Area: Improving the clippy website
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
Comments
evanjs
added a commit
to evanjs/rust-clippy
that referenced
this issue
Oct 31, 2019
- Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py
evanjs
added a commit
to evanjs/rust-clippy
that referenced
this issue
Oct 31, 2019
- Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py
bors
added a commit
that referenced
this issue
Nov 3, 2019
Fix Deprecated lints don't expand ### Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py ### fixes #4748 Unable to `cargo test` locally (I'm on NixOS, and keep getting errors that are similar to those #4714 might solve) but I have verified that all deprecated lints can now be expanded like other lints. 
bors
added a commit
that referenced
this issue
Nov 3, 2019
Fix Deprecated lints don't expand ### Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py ### fixes #4748 Unable to `cargo test` locally (I'm on NixOS, and keep getting errors that are similar to those #4714 might solve) but I have verified that all deprecated lints can now be expanded like other lints.  changelog: Show deprecated lints in lint documentation again
This should've been caught by rustc. Looks like I would submit a PR to fix this, but it looks like the lint infrastructure has drifted away from working with what's currently in |
flip1995
added a commit
to flip1995/rust-clippy
that referenced
this issue
Nov 7, 2019
Fix Deprecated lints don't expand ### Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py ### fixes rust-lang#4748 Unable to `cargo test` locally (I'm on NixOS, and keep getting errors that are similar to those rust-lang#4714 might solve) but I have verified that all deprecated lints can now be expanded like other lints.  changelog: Show deprecated lints in lint documentation again
flip1995
added a commit
to flip1995/rust-clippy
that referenced
this issue
Nov 7, 2019
Fix Deprecated lints don't expand ### Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py ### fixes rust-lang#4748 Unable to `cargo test` locally (I'm on NixOS, and keep getting errors that are similar to those rust-lang#4714 might solve) but I have verified that all deprecated lints can now be expanded like other lints.  changelog: Show deprecated lints in lint documentation again
bors
added a commit
that referenced
this issue
Nov 7, 2019
Fix Deprecated lints don't expand ### Move doc comments inside of declare_deprecated_lint macros so that they are picked up by lintlib.py ### fixes #4748 Unable to `cargo test` locally (I'm on NixOS, and keep getting errors that are similar to those #4714 might solve) but I have verified that all deprecated lints can now be expanded like other lints.  changelog: Show deprecated lints in lint documentation again
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-documentation
Area: Adding or improving documentation
A-website
Area: Improving the clippy website
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
reported in Discord by @evanjs: Deprecated lints in the docs don't expand:
https://rust-lang.github.io/rust-clippy/master/#misaligned_transmute
This is probably because the doc comments need to be moved above the
pub LINT_NAME
line so that the lintlib.py script picks them up again.The text was updated successfully, but these errors were encountered: