rust/src/test/ui/lint/lints-in-foreign-macros.stderr

58 lines
1.7 KiB
Plaintext
Raw Normal View History

warning: unused import: `std::string::ToString`
2018-12-25 09:56:47 -06:00
--> $DIR/lints-in-foreign-macros.rs:11:16
|
LL | () => {use std::string::ToString;} //~ WARN: unused import
| ^^^^^^^^^^^^^^^^^^^^^
...
LL | mod a { foo!(); }
| ------- in this macro invocation
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lints-in-foreign-macros.rs:4:9
|
2018-08-23 12:51:54 -05:00
LL | #![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
| ^^^^^^^^^^^^^^
warning: unused import: `std::string::ToString`
2018-12-25 09:56:47 -06:00
--> $DIR/lints-in-foreign-macros.rs:16:18
|
LL | mod c { baz!(use std::string::ToString;); } //~ WARN: unused import
| ^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `std::string::ToString`
2018-12-25 09:56:47 -06:00
--> $DIR/lints-in-foreign-macros.rs:17:19
|
LL | mod d { baz2!(use std::string::ToString;); } //~ WARN: unused import
| ^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for crate
2018-12-25 09:56:47 -06:00
--> $DIR/lints-in-foreign-macros.rs:4:1
|
2018-08-23 12:51:54 -05:00
LL | / #![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
2018-08-22 15:26:39 -05:00
LL | | #![warn(missing_docs)]
LL | |
LL | | #[macro_use]
... |
LL | |
2018-08-23 12:51:54 -05:00
LL | | fn main() {}
| |____________^
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lints-in-foreign-macros.rs:5:9
|
2018-08-22 15:26:39 -05:00
LL | #![warn(missing_docs)]
| ^^^^^^^^^^^^
2018-08-23 12:51:54 -05:00
warning: missing documentation for a function
2018-12-25 09:56:47 -06:00
--> $DIR/lints-in-foreign-macros.rs:18:6
2018-08-23 12:51:54 -05:00
|
LL | baz!(pub fn undocumented() {}); //~ WARN: missing documentation for a function
| ^^^^^^^^^^^^^^^^^^^^^
warning: missing documentation for a function
2018-12-25 09:56:47 -06:00
--> $DIR/lints-in-foreign-macros.rs:19:7
2018-08-23 12:51:54 -05:00
|
LL | baz2!(pub fn undocumented2() {}); //~ WARN: missing documentation for a function
| ^^^^^^^^^^^^^^^^^^^^^^