Skip to content

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

Merged
bors merged 1 commit into
rust-lang:incomingfrom
alexcrichton:issue-3266
Apr 10, 2013
Merged

Allow lint modes to be used on unused variables and dead assignments#5804
bors merged 1 commit into
rust-lang:incomingfrom
alexcrichton:issue-3266

Conversation

@alexcrichton

Copy link
Copy Markdown
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.
@borsbors closed this Apr 10, 2013
@bors
bors merged commit 3e67085 into rust-lang:incomingApr 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
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
5804: Add type safety to diagnostic codes
r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Sign up for freeto 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

@alexcrichton@graydon@bors