File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
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]
1516
1617#[ macro_use]
1718extern crate lints_in_foreign_macros;
Original file line number Diff line number Diff line change 11warning: unused import: `std::string::ToString`
2- --> $DIR/lints-in-foreign-macros.rs:20 :16
2+ --> $DIR/lints-in-foreign-macros.rs:21 :16
33 |
44LL | () => {use std::string::ToString;} //~ WARN: unused import
55 | ^^^^^^^^^^^^^^^^^^^^^
@@ -14,14 +14,32 @@ LL | #![warn(unused_imports)]
1414 | ^^^^^^^^^^^^^^
1515
1616warning: unused import: `std::string::ToString`
17- --> $DIR/lints-in-foreign-macros.rs:25 :18
17+ --> $DIR/lints-in-foreign-macros.rs:26 :18
1818 |
1919LL | mod c { baz!(use std::string::ToString;); } //~ WARN: unused import
2020 | ^^^^^^^^^^^^^^^^^^^^^
2121
2222warning: unused import: `std::string::ToString`
23- --> $DIR/lints-in-foreign-macros.rs:26 :19
23+ --> $DIR/lints-in-foreign-macros.rs:27 :19
2424 |
2525LL | mod d { baz2!(use std::string::ToString;); } //~ WARN: unused import
2626 | ^^^^^^^^^^^^^^^^^^^^^
2727
28+ warning: missing documentation for crate
29+ --> $DIR/lints-in-foreign-macros.rs:14:1
30+ |
31+ LL | / #![warn(unused_imports)]
32+ LL | | #![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
33+ LL | |
34+ LL | | #[macro_use]
35+ ... |
36+ LL | |
37+ LL | | fn main() {}
38+ | |____________^
39+ |
40+ note: lint level defined here
41+ --> $DIR/lints-in-foreign-macros.rs:15:9
42+ |
43+ LL | #![warn(missing_docs)] //~ WARN: missing documentation for crate [missing_docs]
44+ | ^^^^^^^^^^^^
45+
You can’t perform that action at this time.
0 commit comments