about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-12-07 10:42:51 -0800
committerGitHub <noreply@github.com>2016-12-07 10:42:51 -0800
commit494f68626348ae98165e0c253e4540d22492e5bc (patch)
treef498bda9f1ea07461b9d9351c235a9f13d026503 /src/test/run-pass/thinlto
parent7846610470392abc3ab1470853bbe7b408fe4254 (diff)
parent58e70e7b14fcf58ea4ee0cedd198cd1ab5ececa4 (diff)
downloadrust-494f68626348ae98165e0c253e4540d22492e5bc.tar.gz
rust-494f68626348ae98165e0c253e4540d22492e5bc.zip
Rollup merge of #38085 - estebank:empty-import-list-fix-38012, r=jseyfried
Warn when an import list is empty

For a given file

```rust
use std::*;
use std::{};
```

output the following warnings

```
warning: unused import: `use std::{};`, #[warn(unused_imports)] on by default
 --> file.rs:2:1
  |
2 | use std::{};
  | ^^^^^^^^^^^^

warning: unused import: `std::*;`, #[warn(unused_imports)] on by default
 --> file.rs:1:5
  |
1 | use std::*;
  |     ^^^^^^^
```
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions