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

Add identifier to unused import warnings #37394

Merged
merged 1 commit into from
Oct 27, 2016

Conversation

cramertj
Copy link
Member

@cramertj cramertj commented Oct 25, 2016

Fix #37376.

For some reason, though, I'm getting warnings with messages like "76:9: 76:16: unused import: self::g" instead of "unused import: self::g". @pnkfelix Any ideas what might be causing this?

@rust-highfive
Copy link
Collaborator

r? @eddyb

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

@cramertj
Copy link
Member Author

r? @pnkfelix

@rust-highfive rust-highfive assigned pnkfelix and unassigned eddyb Oct 25, 2016
@@ -17,19 +17,19 @@ use std::mem::*; // shouldn't get errors for not using
// everything imported

// Should get errors for both 'Some' and 'None'
use std::option::Option::{Some, None}; //~ ERROR unused import
//~^ ERROR unused import
use std::option::Option::{Some, None}; //~ ERROR unused import `Some`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you forgot to add the colons after unused import

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of all the silly things... Good catch!

@GuillaumeGomez
Copy link
Member

Once the semi-colons have been added, it'll be good for me.

@cramertj cramertj force-pushed the cramertj/unused-import-with-id branch from 54a73d7 to 2bd9418 Compare October 25, 2016 15:17
@cramertj cramertj changed the title [WIP] Add identifier to unused import warnings Add identifier to unused import warnings Oct 25, 2016
@cramertj
Copy link
Member Author

@GuillaumeGomez Colons added 😄

@GuillaumeGomez
Copy link
Member

Thanks!

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented Oct 26, 2016

📌 Commit 2bd9418 has been approved by GuillaumeGomez

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Oct 26, 2016
…h-id, r=GuillaumeGomez

Add identifier to unused import warnings

Fix rust-lang#37376.

For some reason, though, I'm getting warnings with messages like "76:9: 76:16: unused import: `self::g`" instead of "unused import: `self::g`". @pnkfelix Any ideas what might be causing this?
bors added a commit that referenced this pull request Oct 26, 2016
Rollup of 7 pull requests

- Successful merges: #36206, #37144, #37391, #37394, #37396, #37398, #37414
- Failed merges:
@bors bors merged commit 2bd9418 into rust-lang:master Oct 27, 2016
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.

7 participants