-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Add lint for unused macros #41907
Merged
Merged
Add lint for unused macros #41907
Commits on May 13, 2017
-
Configuration menu - View commit details
-
Copy full SHA for df188b8 - Browse repository at this point
Copy the full SHA df188b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for db82c57 - Browse repository at this point
Copy the full SHA db82c57View commit details -
Support #[allow] etc logic on a per macro level
This commit extends the current unused macro linter to support directives like #[allow(unused_macros)] or #[deny(unused_macros)] directly next to the macro definition, or in one of the modules the macro is inside. Before, we only supported such directives at a per crate level, due to the crate's NodeId being passed to session.add_lint. We also had to implement handling of the macro's NodeId in the lint visitor.
Configuration menu - View commit details
-
Copy full SHA for d14d194 - Browse repository at this point
Copy the full SHA d14d194View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba0601d - Browse repository at this point
Copy the full SHA ba0601dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b36d23c - Browse repository at this point
Copy the full SHA b36d23cView commit details
Commits on May 14, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 0d0cb27 - Browse repository at this point
Copy the full SHA 0d0cb27View commit details
Commits on May 15, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 25b7f10 - Browse repository at this point
Copy the full SHA 25b7f10View commit details
Commits on May 16, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 6dbd706 - Browse repository at this point
Copy the full SHA 6dbd706View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.