|
1 | | -error: missing documentation for the crate |
2 | | - --> $DIR/check-fail.rs:3:1 |
| 1 | +error: missing documentation for a function |
| 2 | + --> $DIR/check-fail.rs:11:1 |
3 | 3 | | |
4 | | -LL | / #![deny(missing_docs)] |
5 | | -LL | | |
6 | | -LL | | |
7 | | -LL | | #![deny(rustdoc)] |
8 | | -LL | | |
9 | | -LL | | pub fn foo() {} |
10 | | - | |_______________^ |
| 4 | +LL | pub fn foo() {} |
| 5 | + | ^^^^^^^^^^^^ |
11 | 6 | | |
12 | 7 | note: the lint level is defined here |
13 | 8 | --> $DIR/check-fail.rs:3:9 |
14 | 9 | | |
15 | 10 | LL | #![deny(missing_docs)] |
16 | 11 | | ^^^^^^^^^^^^ |
17 | 12 |
|
18 | | -error: missing documentation for a function |
19 | | - --> $DIR/check-fail.rs:8:1 |
| 13 | +error: missing code example in this documentation |
| 14 | + --> $DIR/check-fail.rs:11:1 |
20 | 15 | | |
21 | 16 | LL | pub fn foo() {} |
22 | | - | ^^^^^^^^^^^^ |
| 17 | + | ^^^^^^^^^^^^^^^ |
| 18 | + | |
| 19 | +note: the lint level is defined here |
| 20 | + --> $DIR/check-fail.rs:4:9 |
| 21 | + | |
| 22 | +LL | #![deny(rustdoc)] |
| 23 | + | ^^^^^^^ |
| 24 | + = note: `#[deny(missing_doc_code_examples)]` implied by `#[deny(rustdoc)]` |
23 | 25 |
|
24 | | -error: missing code example in this documentation |
25 | | - --> $DIR/check-fail.rs:3:1 |
| 26 | +error: unknown attribute `testharness`. Did you mean `test_harness`? |
| 27 | + --> $DIR/check-fail.rs:6:1 |
26 | 28 | | |
27 | | -LL | / #![deny(missing_docs)] |
28 | | -LL | | |
29 | | -LL | | |
30 | | -LL | | #![deny(rustdoc)] |
| 29 | +LL | / //! ```rust,testharness |
31 | 30 | LL | | |
32 | | -LL | | pub fn foo() {} |
33 | | - | |_______________^ |
| 31 | +LL | | //! let x = 12; |
| 32 | +LL | | //! ``` |
| 33 | + | |_______^ |
34 | 34 | | |
35 | 35 | note: the lint level is defined here |
36 | | - --> $DIR/check-fail.rs:6:9 |
| 36 | + --> $DIR/check-fail.rs:4:9 |
37 | 37 | | |
38 | 38 | LL | #![deny(rustdoc)] |
39 | 39 | | ^^^^^^^ |
40 | | - = note: `#[deny(missing_doc_code_examples)]` implied by `#[deny(rustdoc)]` |
| 40 | + = note: `#[deny(invalid_codeblock_attributes)]` implied by `#[deny(rustdoc)]` |
| 41 | + = help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function |
41 | 42 |
|
42 | | -error: missing code example in this documentation |
43 | | - --> $DIR/check-fail.rs:8:1 |
| 43 | +error: unknown attribute `testharness`. Did you mean `test_harness`? |
| 44 | + --> $DIR/check-fail.rs:15:1 |
44 | 45 | | |
45 | | -LL | pub fn foo() {} |
46 | | - | ^^^^^^^^^^^^^^^ |
| 46 | +LL | / /// hello |
| 47 | +LL | | |
| 48 | +LL | | /// |
| 49 | +LL | | /// ```rust,testharness |
| 50 | +LL | | /// let x = 12; |
| 51 | +LL | | /// ``` |
| 52 | + | |_______^ |
| 53 | + | |
| 54 | + = help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function |
47 | 55 |
|
48 | 56 | error: aborting due to 4 previous errors |
49 | 57 |
|
0 commit comments