]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/macro-use-warned-against.stderr
rustc: Lint against `#[macro_use]` in 2018 idioms
[rust.git] / src / test / ui / rust-2018 / macro-use-warned-against.stderr
1 warning: deprecated `#[macro_use]` directive used to import macros should be replaced at use sites with a `use` statement to import the macro instead
2   --> $DIR/macro-use-warned-against.rs:18:1
3    |
4 LL | #[macro_use] //~ WARN should be replaced at use sites with a `use` statement
5    | ^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/macro-use-warned-against.rs:15:9
9    |
10 LL | #![warn(rust_2018_idioms, unused)]
11    |         ^^^^^^^^^^^^^^^^
12    = note: #[warn(macro_use_extern_crate)] implied by #[warn(rust_2018_idioms)]
13
14 warning: unused `#[macro_use]` import
15   --> $DIR/macro-use-warned-against.rs:20:1
16    |
17 LL | #[macro_use] //~ WARN unused `#[macro_use]`
18    | ^^^^^^^^^^^^
19    |
20 note: lint level defined here
21   --> $DIR/macro-use-warned-against.rs:15:27
22    |
23 LL | #![warn(rust_2018_idioms, unused)]
24    |                           ^^^^^^
25    = note: #[warn(unused_imports)] implied by #[warn(unused)]
26