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