]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/missing-doc.stderr
a876dc078ebff96f25c8e34efad90156b896a70a
[rustc.git] / src / tools / clippy / tests / ui / missing-doc.stderr
1 error: missing documentation for a type alias
2 --> $DIR/missing-doc.rs:10:1
3 |
4 LL | type Typedef = String;
5 | ^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`
8
9 error: missing documentation for a type alias
10 --> $DIR/missing-doc.rs:11:1
11 |
12 LL | pub type PubTypedef = String;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: missing documentation for a module
16 --> $DIR/missing-doc.rs:13:1
17 |
18 LL | mod module_no_dox {}
19 | ^^^^^^^^^^^^^^^^^^^^
20
21 error: missing documentation for a module
22 --> $DIR/missing-doc.rs:14:1
23 |
24 LL | pub mod pub_module_no_dox {}
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: missing documentation for a function
28 --> $DIR/missing-doc.rs:18:1
29 |
30 LL | pub fn foo2() {}
31 | ^^^^^^^^^^^^^^^^
32
33 error: missing documentation for a function
34 --> $DIR/missing-doc.rs:19:1
35 |
36 LL | fn foo3() {}
37 | ^^^^^^^^^^^^
38
39 error: missing documentation for an enum
40 --> $DIR/missing-doc.rs:33:1
41 |
42 LL | / enum Baz {
43 LL | | BazA { a: isize, b: isize },
44 LL | | BarB,
45 LL | | }
46 | |_^
47
48 error: missing documentation for a variant
49 --> $DIR/missing-doc.rs:34:5
50 |
51 LL | BazA { a: isize, b: isize },
52 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
53
54 error: missing documentation for a struct field
55 --> $DIR/missing-doc.rs:34:12
56 |
57 LL | BazA { a: isize, b: isize },
58 | ^^^^^^^^
59
60 error: missing documentation for a struct field
61 --> $DIR/missing-doc.rs:34:22
62 |
63 LL | BazA { a: isize, b: isize },
64 | ^^^^^^^^
65
66 error: missing documentation for a variant
67 --> $DIR/missing-doc.rs:35:5
68 |
69 LL | BarB,
70 | ^^^^
71
72 error: missing documentation for an enum
73 --> $DIR/missing-doc.rs:38:1
74 |
75 LL | / pub enum PubBaz {
76 LL | | PubBazA { a: isize },
77 LL | | }
78 | |_^
79
80 error: missing documentation for a variant
81 --> $DIR/missing-doc.rs:39:5
82 |
83 LL | PubBazA { a: isize },
84 | ^^^^^^^^^^^^^^^^^^^^
85
86 error: missing documentation for a struct field
87 --> $DIR/missing-doc.rs:39:15
88 |
89 LL | PubBazA { a: isize },
90 | ^^^^^^^^
91
92 error: missing documentation for a constant
93 --> $DIR/missing-doc.rs:59:1
94 |
95 LL | const FOO: u32 = 0;
96 | ^^^^^^^^^^^^^^^^^^^
97
98 error: missing documentation for a constant
99 --> $DIR/missing-doc.rs:66:1
100 |
101 LL | pub const FOO4: u32 = 0;
102 | ^^^^^^^^^^^^^^^^^^^^^^^^
103
104 error: missing documentation for a static
105 --> $DIR/missing-doc.rs:68:1
106 |
107 LL | static BAR: u32 = 0;
108 | ^^^^^^^^^^^^^^^^^^^^
109
110 error: missing documentation for a static
111 --> $DIR/missing-doc.rs:75:1
112 |
113 LL | pub static BAR4: u32 = 0;
114 | ^^^^^^^^^^^^^^^^^^^^^^^^^
115
116 error: missing documentation for a module
117 --> $DIR/missing-doc.rs:77:1
118 |
119 LL | / mod internal_impl {
120 LL | | /// dox
121 LL | | pub fn documented() {}
122 LL | | pub fn undocumented1() {}
123 ... |
124 LL | | }
125 LL | | }
126 | |_^
127
128 error: missing documentation for a function
129 --> $DIR/missing-doc.rs:80:5
130 |
131 LL | pub fn undocumented1() {}
132 | ^^^^^^^^^^^^^^^^^^^^^^^^^
133
134 error: missing documentation for a function
135 --> $DIR/missing-doc.rs:81:5
136 |
137 LL | pub fn undocumented2() {}
138 | ^^^^^^^^^^^^^^^^^^^^^^^^^
139
140 error: missing documentation for a function
141 --> $DIR/missing-doc.rs:82:5
142 |
143 LL | fn undocumented3() {}
144 | ^^^^^^^^^^^^^^^^^^^^^
145
146 error: missing documentation for a function
147 --> $DIR/missing-doc.rs:87:9
148 |
149 LL | pub fn also_undocumented1() {}
150 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
151
152 error: missing documentation for a function
153 --> $DIR/missing-doc.rs:88:9
154 |
155 LL | fn also_undocumented2() {}
156 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
157
158 error: aborting due to 24 previous errors
159