2018-07-17 17:23:03 +00:00
|
|
|
warning: unused import: `std::string::ToString`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lints-in-foreign-macros.rs:11:16
|
2018-07-17 17:23:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | () => {use std::string::ToString;}
|
2019-02-11 19:16:22 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2018-07-17 17:23:03 +00:00
|
|
|
...
|
|
|
|
LL | mod a { foo!(); }
|
2021-10-14 18:28:28 +00:00
|
|
|
| ------ in this macro invocation
|
2018-07-17 17:23:03 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lints-in-foreign-macros.rs:4:9
|
2018-07-17 17:23:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | #![warn(unused_imports)]
|
2018-07-17 17:23:03 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2021-02-13 19:52:25 +00:00
|
|
|
= note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-07-17 17:23:03 +00:00
|
|
|
|
|
|
|
warning: unused import: `std::string::ToString`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lints-in-foreign-macros.rs:16:18
|
2018-07-17 17:23:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | mod c { baz!(use std::string::ToString;); }
|
2019-02-11 19:16:22 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2018-07-17 17:23:03 +00:00
|
|
|
|
|
|
|
warning: unused import: `std::string::ToString`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lints-in-foreign-macros.rs:17:19
|
2018-07-17 17:23:03 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | mod d { baz2!(use std::string::ToString;); }
|
2019-02-11 19:16:22 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2018-07-17 17:23:03 +00:00
|
|
|
|
2020-03-22 19:37:51 +00:00
|
|
|
warning: missing documentation for the crate
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lints-in-foreign-macros.rs:4:1
|
2018-08-21 19:43:24 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | / #![warn(unused_imports)]
|
2018-08-22 20:26:39 +00:00
|
|
|
LL | | #![warn(missing_docs)]
|
2018-08-21 19:43:24 +00:00
|
|
|
LL | |
|
|
|
|
LL | | #[macro_use]
|
|
|
|
... |
|
|
|
|
LL | |
|
2018-08-23 17:51:54 +00:00
|
|
|
LL | | fn main() {}
|
2018-08-21 19:43:24 +00:00
|
|
|
| |____________^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lints-in-foreign-macros.rs:5:9
|
2018-08-21 19:43:24 +00:00
|
|
|
|
|
2018-08-22 20:26:39 +00:00
|
|
|
LL | #![warn(missing_docs)]
|
2018-08-21 19:43:24 +00:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
2018-08-23 17:51:54 +00:00
|
|
|
warning: missing documentation for a function
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lints-in-foreign-macros.rs:18:6
|
2018-08-23 17:51:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | baz!(pub fn undocumented() {});
|
2018-08-23 17:51:54 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
warning: missing documentation for a function
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/lints-in-foreign-macros.rs:19:7
|
2018-08-23 17:51:54 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | baz2!(pub fn undocumented2() {});
|
2018-08-23 17:51:54 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
warning: 6 warnings emitted
|
|
|
|
|