Apply same treatment to MISSING_DOC_CODE_EXAMPLES
This commit is contained in:
parent
b31f5d05b1
commit
22465b35a6
3 changed files with 34 additions and 6 deletions
20
src/test/rustdoc-ui/coverage/allow_missing_docs.stderr
Normal file
20
src/test/rustdoc-ui/coverage/allow_missing_docs.stderr
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
warning: missing documentation for a struct
|
||||
--> $DIR/allow_missing_docs.rs:36:5
|
||||
|
|
||||
LL | pub struct Bar {
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/allow_missing_docs.rs:35:12
|
||||
|
|
||||
LL | #[warn(missing_docs)]
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
warning: missing documentation for a struct field
|
||||
--> $DIR/allow_missing_docs.rs:37:9
|
||||
|
|
||||
LL | pub f: u32,
|
||||
| ^^^^^^^^^^
|
||||
|
||||
warning: 2 warnings emitted
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue