Skip to content
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

Allow lint modes to be used on unused variables and dead assignments #5804

Merged
merged 1 commit into from
Apr 10, 2013

Conversation

alexcrichton
Copy link
Member

This leaves the default lint modes at warn, but now the unused variable and dead assignment warnings are configurable on a per-item basis. As described in #3266, this just involved carrying around a couple ids to pass over to span_lint. I personally would prefer to keep the _ prefix as well.

This closes #3266.

bors added a commit that referenced this pull request Apr 10, 2013
This leaves the default lint modes at `warn`, but now the unused variable and dead assignment warnings are configurable on a per-item basis. As described in #3266, this just involved carrying around a couple ids to pass over to `span_lint`. I personally would prefer to keep the `_` prefix as well.

This closes #3266.
@bors bors closed this Apr 10, 2013
@bors bors merged commit 3e67085 into rust-lang:incoming Apr 10, 2013
@alexcrichton alexcrichton deleted the issue-3266 branch April 10, 2013 05:01
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 17, 2020
Backport remerge rust-1.44.1

r? @ghost

changelog: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants