File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1212// compile-pass
1313
1414#![ warn( unused_imports) ]
15- #![ warn( missing_docs) ] //~ WARN: missing documentation for crate [missing_docs]
15+ #![ warn( missing_docs) ]
1616
1717#[ macro_use]
1818extern crate lints_in_foreign_macros;
@@ -25,5 +25,6 @@ mod a { foo!(); }
2525mod b { bar ! ( ) ; }
2626mod c { baz ! ( use std:: string:: ToString ; ) ; } //~ WARN: unused import
2727mod d { baz2 ! ( use std:: string:: ToString ; ) ; } //~ WARN: unused import
28+ mod e { baz ! ( pub fn undocumented( ) { } ) ; } //~ WARN: missing documentation for a function
2829
2930fn main ( ) { }
Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ warning: missing documentation for crate
2929 --> $DIR/lints-in-foreign-macros.rs:14:1
3030 |
3131LL | / #![warn(unused_imports)]
32- LL | | #![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
32+ LL | | #![warn(missing_docs)]
3333LL | |
3434LL | | #[macro_use]
3535... |
3636LL | |
37- LL | | fn main() {}
37+ LL | | fn main() {} //~ WARN: missing documentation for crate [missing_docs]
3838 | |____________^
3939 |
4040note: lint level defined here
4141 --> $DIR/lints-in-foreign-macros.rs:15:9
4242 |
43- LL | #![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
43+ LL | #![warn(missing_docs)]
4444 | ^^^^^^^^^^^^
4545
You can’t perform that action at this time.
0 commit comments