mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
29 lines
1.3 KiB
Text
29 lines
1.3 KiB
Text
error: `macro_use` attributes are no longer needed in the Rust 2018 edition
|
|
--> tests/ui/macro_use_imports.rs:18:5
|
|
|
|
|
LL | #[macro_use]
|
|
| ^^^^^^^^^^^^ help: remove the attribute and import the macro directly, try: `use mac::{pub_macro, inner_mod_macro, function_macro, ty_macro, pub_in_private_macro};`
|
|
|
|
|
= note: `-D clippy::macro-use-imports` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::macro_use_imports)]`
|
|
|
|
error: `macro_use` attributes are no longer needed in the Rust 2018 edition
|
|
--> tests/ui/macro_use_imports.rs:22:5
|
|
|
|
|
LL | #[macro_use]
|
|
| ^^^^^^^^^^^^ help: remove the attribute and import the macro directly, try: `use mac::{inner::mut_mut, inner::try_err};`
|
|
|
|
error: `macro_use` attributes are no longer needed in the Rust 2018 edition
|
|
--> tests/ui/macro_use_imports.rs:24:5
|
|
|
|
|
LL | #[macro_use]
|
|
| ^^^^^^^^^^^^ help: remove the attribute and import the macro directly, try: `use mac::inner::nested::string_add;`
|
|
|
|
error: `macro_use` attributes are no longer needed in the Rust 2018 edition
|
|
--> tests/ui/macro_use_imports.rs:20:5
|
|
|
|
|
LL | #[macro_use]
|
|
| ^^^^^^^^^^^^ help: remove the attribute and import the macro directly, try: `use mini_mac::ClippyMiniMacroTest;`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|