Uh oh!
There was an error while loading. Please reload this page.
Group unused import warnings per import list - #37456
Conversation
rust-highfive
commented
Oct 28, 2016
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @eddyb (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
eddyb
commented
Oct 28, 2016
1fcc56c to
35540acComparefrewsxcv
commented
Oct 29, 2016
Might want to check https://s3.amazonaws.com/archive.travis-ci.org/jobs/171581156/log.txt for the test failures |
ffbeb3c to
c336f15CompareThere was a problem hiding this comment.
You need to use NodeMap<NodeMap<Span>> here (from rustc::util::nodemap).
c96b6a2 to
8c745d6Comparesophiajt
commented
Oct 31, 2016
@bors r+ |
bors
commented
Oct 31, 2016
📌 Commit 8c745d6 has been approved by |
bors
commented
Oct 31, 2016
☔ The latest upstream changes (presumably #37191) made this pull request unmergeable. Please resolve the merge conflicts. |
8c745d6 to
2a82785Compareestebank
commented
Oct 31, 2016
@jonathandturner rebased to fix merge conflict and while I was at it, squashed to clean commit history. |
bors
commented
Nov 1, 2016
☔ The latest upstream changes (presumably #37497) made this pull request unmergeable. Please resolve the merge conflicts. |
2a82785 to
0c47923Comparebors
commented
Nov 4, 2016
☔ The latest upstream changes (presumably #37167) made this pull request unmergeable. Please resolve the merge conflicts. |
Given a file
```rust
use std::collections::{BinaryHeap, BTreeMap, BTreeSet};
fn main() {}
```
Show a single warning, instead of three for each unused import:
```nocode
warning: unused imports, #[warn(unused_imports)] on by default
--> foo.rs:1:24
|
1 | use std::collections::{BinaryHeap, BTreeMap, BTreeSet};
| ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^
```
Include support for lints pointing at `MultilineSpan`s, instead of just
`Span`s.0c47923 to
a820d99Comparealexcrichton
commented
Nov 10, 2016
@bors: r=jonathandturner (assuming nothing changed, but @jonathandturner feel free to correct me!) btw I'm pretty stoked about this change! |
bors
commented
Nov 10, 2016
📌 Commit a820d99 has been approved by |
brson
commented
Nov 11, 2016
Sweet fix for an ancient bug! |
bors
commented
Nov 11, 2016
…turner
Group unused import warnings per import list
Given a file
``` rust
use std::collections::{BinaryHeap, BTreeMap, BTreeSet};
fn main() {}
```
Show a single warning, instead of three for each unused import:
``` nocode
warning: unused imports, #[warn(unused_imports)] on by default
--> file2.rs:1:24
|
1 | use std::collections::{BinaryHeap, BTreeMap, BTreeSet};
| ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^
```
Include support for lints pointing at `MultilineSpan`s, instead of just
`Span`s.
Fixes#16132.bors
commented
Nov 11, 2016
emberian
commented
Jan 25, 2017
\o/ you're awesome, @estebank |
Given a file
Show a single warning, instead of three for each unused import:
Include support for lints pointing at
MultilineSpans, instead of justSpans.Fixes#16132.