add testcase to existing macro testcase
This commit is contained in:
parent
17eb64a8b8
commit
a6201f9a2b
2 changed files with 22 additions and 3 deletions
|
|
@ -12,6 +12,7 @@
|
|||
// compile-pass
|
||||
|
||||
#![warn(unused_imports)]
|
||||
#![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
|
||||
|
||||
#[macro_use]
|
||||
extern crate lints_in_foreign_macros;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
warning: unused import: `std::string::ToString`
|
||||
--> $DIR/lints-in-foreign-macros.rs:20:16
|
||||
--> $DIR/lints-in-foreign-macros.rs:21:16
|
||||
|
|
||||
LL | () => {use std::string::ToString;} //~ WARN: unused import
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -14,14 +14,32 @@ LL | #![warn(unused_imports)]
|
|||
| ^^^^^^^^^^^^^^
|
||||
|
||||
warning: unused import: `std::string::ToString`
|
||||
--> $DIR/lints-in-foreign-macros.rs:25:18
|
||||
--> $DIR/lints-in-foreign-macros.rs:26:18
|
||||
|
|
||||
LL | mod c { baz!(use std::string::ToString;); } //~ WARN: unused import
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: unused import: `std::string::ToString`
|
||||
--> $DIR/lints-in-foreign-macros.rs:26:19
|
||||
--> $DIR/lints-in-foreign-macros.rs:27:19
|
||||
|
|
||||
LL | mod d { baz2!(use std::string::ToString;); } //~ WARN: unused import
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: missing documentation for crate
|
||||
--> $DIR/lints-in-foreign-macros.rs:14:1
|
||||
|
|
||||
LL | / #![warn(unused_imports)]
|
||||
LL | | #![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
|
||||
LL | |
|
||||
LL | | #[macro_use]
|
||||
... |
|
||||
LL | |
|
||||
LL | | fn main() {}
|
||||
| |____________^
|
||||
|
|
||||
note: lint level defined here
|
||||
--> $DIR/lints-in-foreign-macros.rs:15:9
|
||||
|
|
||||
LL | #![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue