diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-12-07 10:42:51 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-07 10:42:51 -0800 |
| commit | 494f68626348ae98165e0c253e4540d22492e5bc (patch) | |
| tree | f498bda9f1ea07461b9d9351c235a9f13d026503 /src/test/run-pass/thinlto | |
| parent | 7846610470392abc3ab1470853bbe7b408fe4254 (diff) | |
| parent | 58e70e7b14fcf58ea4ee0cedd198cd1ab5ececa4 (diff) | |
| download | rust-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
