fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
2.8 KiB122 linesraw
1error: missing documentation for a type alias
2  --> $DIR/lint-missing-doc.rs:11:1
3   |
4LL | pub type PubTypedef = String;
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7note: lint level defined here
8  --> $DIR/lint-missing-doc.rs:3:9
9   |
10LL | #![deny(missing_docs)]
11   |         ^^^^^^^^^^^^
12
13error: missing documentation for a struct
14  --> $DIR/lint-missing-doc.rs:18:1
15   |
16LL | pub struct PubFoo {
17   | ^^^^^^^^^^^^^^^^^
18
19error: missing documentation for a struct field
20  --> $DIR/lint-missing-doc.rs:19:5
21   |
22LL |     pub a: isize,
23   |     ^^^^^^^^^^^^
24
25error: missing documentation for a module
26  --> $DIR/lint-missing-doc.rs:30:1
27   |
28LL | pub mod pub_module_no_dox {}
29   | ^^^^^^^^^^^^^^^^^^^^^^^^^
30
31error: missing documentation for a function
32  --> $DIR/lint-missing-doc.rs:34:1
33   |
34LL | pub fn foo2() {}
35   | ^^^^^^^^^^^^^
36
37error: missing documentation for a trait
38  --> $DIR/lint-missing-doc.rs:52:1
39   |
40LL | pub trait C {
41   | ^^^^^^^^^^^
42
43error: missing documentation for a trait method
44  --> $DIR/lint-missing-doc.rs:53:5
45   |
46LL |     fn foo(&self);
47   |     ^^^^^^^^^^^^^^
48
49error: missing documentation for a trait method
50  --> $DIR/lint-missing-doc.rs:54:5
51   |
52LL |     fn foo_with_impl(&self) {}
53   |     ^^^^^^^^^^^^^^^^^^^^^^^
54
55error: missing documentation for an associated type
56  --> $DIR/lint-missing-doc.rs:64:5
57   |
58LL |     type AssociatedType;
59   |     ^^^^^^^^^^^^^^^^^^^^
60
61error: missing documentation for an associated type
62  --> $DIR/lint-missing-doc.rs:65:5
63   |
64LL |     type AssociatedTypeDef = Self;
65   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
67error: missing documentation for a method
68  --> $DIR/lint-missing-doc.rs:81:5
69   |
70LL |     pub fn foo() {}
71   |     ^^^^^^^^^^^^
72
73error: missing documentation for an enum
74  --> $DIR/lint-missing-doc.rs:118:1
75   |
76LL | pub enum PubBaz {
77   | ^^^^^^^^^^^^^^^
78
79error: missing documentation for a variant
80  --> $DIR/lint-missing-doc.rs:119:5
81   |
82LL |     PubBazA {
83   |     ^^^^^^^
84
85error: missing documentation for a struct field
86  --> $DIR/lint-missing-doc.rs:120:9
87   |
88LL |         a: isize,
89   |         ^^^^^^^^
90
91error: missing documentation for a constant
92  --> $DIR/lint-missing-doc.rs:151:1
93   |
94LL | pub const FOO4: u32 = 0;
95   | ^^^^^^^^^^^^^^^^^^^^^^^^
96
97error: missing documentation for a static
98  --> $DIR/lint-missing-doc.rs:161:1
99   |
100LL | pub static BAR4: u32 = 0;
101   | ^^^^^^^^^^^^^^^^^^^^^^^^^
102
103error: missing documentation for a function
104  --> $DIR/lint-missing-doc.rs:167:5
105   |
106LL |     pub fn undocumented1() {}
107   |     ^^^^^^^^^^^^^^^^^^^^^^
108
109error: missing documentation for a function
110  --> $DIR/lint-missing-doc.rs:168:5
111   |
112LL |     pub fn undocumented2() {}
113   |     ^^^^^^^^^^^^^^^^^^^^^^
114
115error: missing documentation for a function
116  --> $DIR/lint-missing-doc.rs:174:9
117   |
118LL |         pub fn also_undocumented1() {}
119   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
121error: aborting due to 19 previous errors
122