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

Warn unused trait imports #30021

Closed
wants to merge 4 commits into from
Closed

Conversation

sanxiyn
Copy link
Member

@sanxiyn sanxiyn commented Nov 24, 2015

Fix #25730.

@rust-highfive
Copy link
Collaborator

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@sanxiyn sanxiyn force-pushed the unused-trait-import branch 2 times, most recently from 6c87a38 to e63ee8b Compare November 24, 2015 15:26
@bors
Copy link
Contributor

bors commented Nov 26, 2015

☔ The latest upstream changes (presumably #30043) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented Nov 27, 2015

☔ The latest upstream changes (presumably #30064) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented Dec 3, 2015

☔ The latest upstream changes (presumably #29999) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Contributor

bors commented Dec 9, 2015

☔ The latest upstream changes (presumably #30145) made this pull request unmergeable. Please resolve the merge conflicts.

@arielb1
Copy link
Contributor

arielb1 commented Dec 9, 2015

Sorry for the delay.

Why is the unused import lint inside rustc_typeck rather than rustc_lint? Also, I would prefer to have a single hashset of used trait imports, rather than 2.

@sanxiyn
Copy link
Member Author

sanxiyn commented Dec 10, 2015

unused_imports is one of HardwiredLints, so it can't be inside rustc_lint.

Two sets are basically a set of trait imports and a set of used trait imports, not two sets of used trait imports. maybe_unused_trait_imports is a set of trait imports (minus those used by name) saved for use post-resolution.

@bors
Copy link
Contributor

bors commented Dec 17, 2015

☔ The latest upstream changes (presumably #30325) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton
Copy link
Member

(ping)

Does this just need a rebase? A re-review?

(just trying to clear out the queue)

@alexcrichton
Copy link
Member

Closing due to inactivity, but feel free to resubmit with a rebase!

Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 22, 2016
bors added a commit that referenced this pull request May 4, 2016
Warn unused trait imports, rebased

Rebase of #30021.

Fix #25730.
bors added a commit that referenced this pull request May 8, 2016
Warn unused trait imports, rebased

Rebase of #30021.

Fix #25730.
@sanxiyn sanxiyn deleted the unused-trait-import branch May 8, 2016 14:01
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.

5 participants