@@ -10,7 +10,7 @@ LL | mod a { foo!(); }
1010note: lint level defined here
1111 --> $DIR/lints-in-foreign-macros.rs:14:9
1212 |
13- LL | #![warn(unused_imports)]
13+ LL | #![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
1414 | ^^^^^^^^^^^^^^
1515
1616warning: unused import: `std::string::ToString`
@@ -28,13 +28,13 @@ LL | mod d { baz2!(use std::string::ToString;); } //~ WARN: unused import
2828warning: missing documentation for crate
2929 --> $DIR/lints-in-foreign-macros.rs:14:1
3030 |
31- LL | / #![warn(unused_imports)]
31+ LL | / #![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
3232LL | | #![warn(missing_docs)]
3333LL | |
3434LL | | #[macro_use]
3535... |
3636LL | |
37- LL | | fn main() {} //~ WARN: missing documentation for crate [missing_docs]
37+ LL | | fn main() {}
3838 | |____________^
3939 |
4040note: lint level defined here
@@ -43,3 +43,15 @@ note: lint level defined here
4343LL | #![warn(missing_docs)]
4444 | ^^^^^^^^^^^^
4545
46+ warning: missing documentation for a function
47+ --> $DIR/lints-in-foreign-macros.rs:28:6
48+ |
49+ LL | baz!(pub fn undocumented() {}); //~ WARN: missing documentation for a function
50+ | ^^^^^^^^^^^^^^^^^^^^^
51+
52+ warning: missing documentation for a function
53+ --> $DIR/lints-in-foreign-macros.rs:29:7
54+ |
55+ LL | baz2!(pub fn undocumented2() {}); //~ WARN: missing documentation for a function
56+ | ^^^^^^^^^^^^^^^^^^^^^^
57+
0 commit comments