File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 12
12
// compile-pass
13
13
14
14
#![ warn( unused_imports) ]
15
- #![ warn( missing_docs) ] //~ WARN: missing documentation for crate [missing_docs]
15
+ #![ warn( missing_docs) ]
16
16
17
17
#[ macro_use]
18
18
extern crate lints_in_foreign_macros;
@@ -25,5 +25,6 @@ mod a { foo!(); }
25
25
mod b { bar ! ( ) ; }
26
26
mod c { baz ! ( use std:: string:: ToString ; ) ; } //~ WARN: unused import
27
27
mod d { baz2 ! ( use std:: string:: ToString ; ) ; } //~ WARN: unused import
28
+ mod e { baz ! ( pub fn undocumented( ) { } ) ; } //~ WARN: missing documentation for a function
28
29
29
30
fn main ( ) { }
Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ warning: missing documentation for crate
29
29
--> $DIR/lints-in-foreign-macros.rs:14:1
30
30
|
31
31
LL | / #![warn(unused_imports)]
32
- LL | | #![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
32
+ LL | | #![warn(missing_docs)]
33
33
LL | |
34
34
LL | | #[macro_use]
35
35
... |
36
36
LL | |
37
- LL | | fn main() {}
37
+ LL | | fn main() {} //~ WARN: missing documentation for crate [missing_docs]
38
38
| |____________^
39
39
|
40
40
note: lint level defined here
41
41
--> $DIR/lints-in-foreign-macros.rs:15:9
42
42
|
43
- LL | #![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
43
+ LL | #![warn(missing_docs)]
44
44
| ^^^^^^^^^^^^
45
45
You can’t perform that action at this time.
0 commit comments