rust/tests/ui/lint/lints-in-foreign-macros.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.6 KiB
Plaintext
Raw Normal View History

warning: unused import: `std::string::ToString`
2018-12-25 15:56:47 +00:00
--> $DIR/lints-in-foreign-macros.rs:11:16
|
2019-03-09 12:03:44 +00:00
LL | () => {use std::string::ToString;}
| ^^^^^^^^^^^^^^^^^^^^^
...
LL | mod a { foo!(); }
2021-10-14 18:28:28 +00:00
| ------ in this macro invocation
|
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
|
2019-03-09 12:03:44 +00:00
LL | #![warn(unused_imports)]
| ^^^^^^^^^^^^^^
= note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused import: `std::string::ToString`
2018-12-25 15:56:47 +00:00
--> $DIR/lints-in-foreign-macros.rs:16:18
|
2019-03-09 12:03:44 +00:00
LL | mod c { baz!(use std::string::ToString;); }
| ^^^^^^^^^^^^^^^^^^^^^
warning: unused import: `std::string::ToString`
2018-12-25 15:56:47 +00:00
--> $DIR/lints-in-foreign-macros.rs:17:19
|
2019-03-09 12:03:44 +00:00
LL | mod d { baz2!(use std::string::ToString;); }
| ^^^^^^^^^^^^^^^^^^^^^
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
|
2019-03-09 12:03:44 +00:00
LL | / #![warn(unused_imports)]
2018-08-22 20:26:39 +00:00
LL | | #![warn(missing_docs)]
LL | |
LL | | #[macro_use]
... |
LL | |
2018-08-23 17:51:54 +00:00
LL | | fn main() {}
| |____________^
|
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-22 20:26:39 +00:00
LL | #![warn(missing_docs)]
| ^^^^^^^^^^^^
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
| ^^^^^^^^^^^^^^^^^^^^^^
warning: 6 warnings emitted