forked from rust-lang/rust-clippy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo dev update lints fixed suggestion, check edition, ran `tests/ui/update-all-references.sh` fixed failing tests with update-references.sh warn on macro_use attr (issue rust-lang#5179) fixed suggestion, check edition, ran `tests/ui/update-all-references.sh` fixed failing tests with update-references.sh update-references.sh for missing-doc-impl.rs use if_chain cargo dev fmt
- Loading branch information
Showing
4 changed files
with
51 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// compile-flags: --edition 2018 | ||
#![warn(clippy::macro_use_import)] | ||
|
||
use std::collections::HashMap; | ||
#[macro_use] | ||
use std::prelude; | ||
|
||
fn main() { | ||
let _ = HashMap::<u8, u8>::new(); | ||
println!(); | ||
} |
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 @@ | ||
error: `macro_use` attribute's are no longer needed in the Rust 2018 edition | ||
--> $DIR/macro_use_import.rs:5:1 | ||
| | ||
LL | #[macro_use] | ||
| ^^^^^^^^^^^^ | ||
| | ||
= note: `-D clippy::macro-use-import` implied by `-D warnings` | ||
= help: remove the attribute and import the macro directly `use std::prelude::<macro name>` | ||
|
||
error: aborting due to previous error | ||
|