File tree Expand file tree Collapse file tree 4 files changed +25
-15
lines changed Expand file tree Collapse file tree 4 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 11//@ check-pass
22//@ compile-flags: -Z unstable-options --check
33//@ normalize-stderr: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
4-
5- #![ feature( rustdoc_missing_doc_code_examples) ]
4+ #![ feature( rustdoc_missing_doc_code_examples) ] //~ WARN no documentation found for `check`'s top-level module
65//~^ WARN
76
87#![ warn( missing_docs) ]
1211pub fn foo ( ) { }
1312//~^ WARN
1413//~^^ WARN
15-
16- //~? WARN no documentation found for this crate's top-level module
Original file line number Diff line number Diff line change 11warning: missing documentation for the crate
2- --> $DIR/check.rs:5 :1
2+ --> $DIR/check.rs:4 :1
33 |
44LL | / #![feature(rustdoc_missing_doc_code_examples)]
55LL | |
@@ -10,36 +10,45 @@ LL | | pub fn foo() {}
1010 | |_______________^
1111 |
1212note: the lint level is defined here
13- --> $DIR/check.rs:8 :9
13+ --> $DIR/check.rs:7 :9
1414 |
1515LL | #![warn(missing_docs)]
1616 | ^^^^^^^^^^^^
1717
1818warning: missing documentation for a function
19- --> $DIR/check.rs:12 :1
19+ --> $DIR/check.rs:11 :1
2020 |
2121LL | pub fn foo() {}
2222 | ^^^^^^^^^^^^
2323
24- warning: no documentation found for this crate's top-level module
24+ warning: no documentation found for `check`'s top-level module
25+ --> $DIR/check.rs:4:1
26+ |
27+ LL | / #![feature(rustdoc_missing_doc_code_examples)]
28+ LL | |
29+ LL | |
30+ LL | | #![warn(missing_docs)]
31+ ... |
32+ LL | | pub fn foo() {}
33+ | |_______________^
2534 |
2635 = help: The following guide may be of use:
2736 https://doc.rust-lang.org/$CHANNEL/rustdoc/how-to-write-documentation.html
2837note: the lint level is defined here
29- --> $DIR/check.rs:10 :9
38+ --> $DIR/check.rs:9 :9
3039 |
3140LL | #![warn(rustdoc::all)]
3241 | ^^^^^^^^^^^^
3342 = note: `#[warn(rustdoc::missing_crate_level_docs)]` implied by `#[warn(rustdoc::all)]`
3443
3544warning: missing code example in this documentation
36- --> $DIR/check.rs:12 :1
45+ --> $DIR/check.rs:11 :1
3746 |
3847LL | pub fn foo() {}
3948 | ^^^^^^^^^^^^^^^
4049 |
4150note: the lint level is defined here
42- --> $DIR/check.rs:9 :9
51+ --> $DIR/check.rs:8 :9
4352 |
4453LL | #![warn(rustdoc::missing_doc_code_examples)]
4554 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 11//@ normalize-stderr: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"
2- #![ deny( rustdoc:: missing_crate_level_docs) ]
2+ #![ deny( rustdoc:: missing_crate_level_docs) ] //~ ERROR no documentation found for `no_crate_level_doc_lint`'s top-level module
33//^~ NOTE defined here
44
55pub fn foo ( ) { }
6-
7- //~? ERROR no documentation found for this crate's top-level module
Original file line number Diff line number Diff line change 1- error: no documentation found for this crate's top-level module
1+ error: no documentation found for `no_crate_level_doc_lint`'s top-level module
2+ --> $DIR/no-crate-level-doc-lint.rs:2:1
3+ |
4+ LL | / #![deny(rustdoc::missing_crate_level_docs)]
5+ ... |
6+ LL | | pub fn foo() {}
7+ | |_______________^
28 |
39 = help: The following guide may be of use:
410 https://doc.rust-lang.org/$CHANNEL/rustdoc/how-to-write-documentation.html
You can’t perform that action at this time.
0 commit comments