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

Same span pointed to multiple times for unused_imports lint #59895

Closed
estebank opened this issue Apr 11, 2019 · 0 comments · Fixed by #59896
Closed

Same span pointed to multiple times for unused_imports lint #59895

estebank opened this issue Apr 11, 2019 · 0 comments · Fixed by #59896
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added.

Comments

@estebank
Copy link
Contributor

My codebase manages to produce the following output under todays nightly:

warning: the item `Foo` is imported redundantly
   --> src/lib.rs:243:9
    |
8   |   Foo, Bar,
    |   ---
    |   |
    |   the item `Foo` is already imported here
    |   the item `Foo` is already imported here
...
243 |     use foo::bar::Foo;
    |         ^^^^^^^^^^^^^
    |
    = note: #[warn(unused_imports)] on by default

I haven't been able to reduce it, but have a patch to fix it (without a test).

@estebank estebank added A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. labels Apr 11, 2019
Centril added a commit to Centril/rust that referenced this issue Apr 14, 2019
Centril added a commit to Centril/rust that referenced this issue Apr 14, 2019
Centril added a commit to Centril/rust that referenced this issue Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant