about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-01-25 15:52:18 +0100
committerGitHub <noreply@github.com>2018-01-25 15:52:18 +0100
commit58e56cca567921350f376cb3e2155029fc0df226 (patch)
tree2b58b6c1d498c3963d6541640a4fb426a0415bce /src/rustllvm/RustWrapper.cpp
parent6f2a0c6f689797e9c2c876109b5acb4926c28634 (diff)
parent0847ac026568b70f0927b85a1a2e3d2f79a6b48f (diff)
downloadrust-58e56cca567921350f376cb3e2155029fc0df226.tar.gz
rust-58e56cca567921350f376cb3e2155029fc0df226.zip
Rollup merge of #47726 - pietroalbini:fix-nested-empty-groups-span, r=petrochenkov
Fix spans in unused import lint for nested groups

This fixes an inconsistency for empty nested groups, and adds a test for all the possible cases of the lint.

```
warning: unused imports: `*`, `Foo`, `baz::{}`, `foobar::*`
  --> test.rs:16:11
   |
16 | use foo::{Foo, bar::{baz::{}, foobar::*}, *};
   |           ^^^        ^^^^^^^  ^^^^^^^^^   ^
   |
   = note: #[warn(unused_imports)] on by default

warning: unused import: `*`
  --> test.rs:17:24
   |
17 | use foo::bar::baz::{*, *};
   |                        ^

warning: unused import: `use foo::{};`
  --> test.rs:18:1
   |
18 | use foo::{};
   | ^^^^^^^^^^^^
```

cc #44494
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions