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