Skip to content

Fixing unused imports when importing a list of items #5570

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

Merged
merged 2 commits into from
Mar 29, 2013

Conversation

alexcrichton
Copy link
Member

Before it wouldn't warn about unused imports in the list if something in the list was used. These commits fix that case, add a test, and remove all unused imports in lists of imports throughout the compiler.

@alexcrichton
Copy link
Member Author

@catamorphism: bors doesn't seem to be picking this up, does the r+ have to go on the last commit?

@alexcrichton
Copy link
Member Author

Oh nevermind, I had to fix a merge conflict in rebasing anyway

Before, if anything in a list was used, the entire list was considered to be
used. This corrects this and also warns on a span of the actual unused import
instead of the entire list.
bors added a commit that referenced this pull request Mar 29, 2013
Before it wouldn't warn about unused imports in the list if something in the list was used. These commits fix that case, add a test, and remove all unused imports in lists of imports throughout the compiler.
@bors bors closed this Mar 29, 2013
@bors bors merged commit be57d74 into rust-lang:incoming Mar 29, 2013
@alexcrichton alexcrichton deleted the fix-unused-imports branch March 29, 2013 13:59
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