resolve: directive -> import
This commit is contained in:
parent
1915bf122e
commit
66d7a88c41
8 changed files with 215 additions and 237 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#![warn(macro_use_extern_crate, unused)]
|
||||
|
||||
#[macro_use] //~ WARN should be replaced at use sites with a `use` statement
|
||||
#[macro_use] //~ WARN should be replaced at use sites with a `use` item
|
||||
extern crate macro_use_warned_against;
|
||||
#[macro_use] //~ WARN unused `#[macro_use]`
|
||||
extern crate macro_use_warned_against2;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
warning: deprecated `#[macro_use]` directive used to import macros should be replaced at use sites with a `use` statement to import the macro instead
|
||||
warning: deprecated `#[macro_use]` attribute used to import macros should be replaced at use sites with a `use` item to import the macro instead
|
||||
--> $DIR/macro-use-warned-against.rs:7:1
|
||||
|
|
||||
LL | #[macro_use]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue