@@ -10,7 +10,7 @@ LL | mod a { foo!(); }
10
10
note: lint level defined here
11
11
--> $DIR/lints-in-foreign-macros.rs:14:9
12
12
|
13
- LL | #![warn(unused_imports)]
13
+ LL | #![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
14
14
| ^^^^^^^^^^^^^^
15
15
16
16
warning: unused import: `std::string::ToString`
@@ -28,13 +28,13 @@ LL | mod d { baz2!(use std::string::ToString;); } //~ WARN: unused import
28
28
warning: missing documentation for crate
29
29
--> $DIR/lints-in-foreign-macros.rs:14:1
30
30
|
31
- LL | / #![warn(unused_imports)]
31
+ LL | / #![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
32
32
LL | | #![warn(missing_docs)]
33
33
LL | |
34
34
LL | | #[macro_use]
35
35
... |
36
36
LL | |
37
- LL | | fn main() {} //~ WARN: missing documentation for crate [missing_docs]
37
+ LL | | fn main() {}
38
38
| |____________^
39
39
|
40
40
note: lint level defined here
@@ -43,3 +43,15 @@ note: lint level defined here
43
43
LL | #![warn(missing_docs)]
44
44
| ^^^^^^^^^^^^
45
45
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