-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If suggestion would leave an empty line, delete it
- Loading branch information
Showing
17 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
use core; | ||
|
||
|
||
|
||
use serde as edres; | ||
|
||
pub use serde; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//@ run-rustfix | ||
//@ check-pass | ||
|
||
#![crate_type = "lib"] | ||
#![warn(unused_imports)] | ||
|
||
//~^ WARN unused imports | ||
//~^ WARN unused import | ||
|
||
//~^ WARN unused import | ||
//~| WARN unused import |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//@ run-rustfix | ||
//@ check-pass | ||
|
||
#![crate_type = "lib"] | ||
#![warn(unused_imports)] | ||
|
||
use std::time::{Duration, Instant}; | ||
//~^ WARN unused imports | ||
use std::time::SystemTime; | ||
//~^ WARN unused import | ||
use std::time::SystemTimeError;use std::time::TryFromFloatSecsError; | ||
//~^ WARN unused import | ||
//~| WARN unused import |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
warning: unused imports: `Duration`, `Instant` | ||
--> $DIR/import_remove_line.rs:7:17 | ||
| | ||
LL | use std::time::{Duration, Instant}; | ||
| ^^^^^^^^ ^^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/import_remove_line.rs:5:9 | ||
| | ||
LL | #![warn(unused_imports)] | ||
| ^^^^^^^^^^^^^^ | ||
|
||
warning: unused import: `std::time::SystemTime` | ||
--> $DIR/import_remove_line.rs:9:5 | ||
| | ||
LL | use std::time::SystemTime; | ||
| ^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
warning: unused import: `std::time::SystemTimeError` | ||
--> $DIR/import_remove_line.rs:11:5 | ||
| | ||
LL | use std::time::SystemTimeError;use std::time::TryFromFloatSecsError; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
warning: unused import: `std::time::TryFromFloatSecsError` | ||
--> $DIR/import_remove_line.rs:11:36 | ||
| | ||
LL | use std::time::SystemTimeError;use std::time::TryFromFloatSecsError; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
warning: 4 warnings emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
|
||
// The suggestion span should include the attribute. | ||
|
||
|
||
//~^ ERROR unused extern crate | ||
|
||
fn main() {} |