summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/missing_doc.stderr
blob: 6c8e66f464377c9f1fd0f36415b1a35926f558f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
error: missing documentation for a type alias
  --> $DIR/missing_doc.rs:15:1
   |
LL | type Typedef = String;
   | ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::missing-docs-in-private-items` implied by `-D warnings`

error: missing documentation for a type alias
  --> $DIR/missing_doc.rs:16:1
   |
LL | pub type PubTypedef = String;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a module
  --> $DIR/missing_doc.rs:18:1
   |
LL | mod module_no_dox {}
   | ^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a module
  --> $DIR/missing_doc.rs:19:1
   |
LL | pub mod pub_module_no_dox {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a function
  --> $DIR/missing_doc.rs:23:1
   |
LL | pub fn foo2() {}
   | ^^^^^^^^^^^^^^^^

error: missing documentation for a function
  --> $DIR/missing_doc.rs:24:1
   |
LL | fn foo3() {}
   | ^^^^^^^^^^^^

error: missing documentation for an enum
  --> $DIR/missing_doc.rs:38:1
   |
LL | / enum Baz {
LL | |     BazA { a: isize, b: isize },
LL | |     BarB,
LL | | }
   | |_^

error: missing documentation for a variant
  --> $DIR/missing_doc.rs:39:5
   |
LL |     BazA { a: isize, b: isize },
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a struct field
  --> $DIR/missing_doc.rs:39:12
   |
LL |     BazA { a: isize, b: isize },
   |            ^^^^^^^^

error: missing documentation for a struct field
  --> $DIR/missing_doc.rs:39:22
   |
LL |     BazA { a: isize, b: isize },
   |                      ^^^^^^^^

error: missing documentation for a variant
  --> $DIR/missing_doc.rs:40:5
   |
LL |     BarB,
   |     ^^^^

error: missing documentation for an enum
  --> $DIR/missing_doc.rs:43:1
   |
LL | / pub enum PubBaz {
LL | |     PubBazA { a: isize },
LL | | }
   | |_^

error: missing documentation for a variant
  --> $DIR/missing_doc.rs:44:5
   |
LL |     PubBazA { a: isize },
   |     ^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a struct field
  --> $DIR/missing_doc.rs:44:15
   |
LL |     PubBazA { a: isize },
   |               ^^^^^^^^

error: missing documentation for a constant
  --> $DIR/missing_doc.rs:64:1
   |
LL | const FOO: u32 = 0;
   | ^^^^^^^^^^^^^^^^^^^

error: missing documentation for a constant
  --> $DIR/missing_doc.rs:71:1
   |
LL | pub const FOO4: u32 = 0;
   | ^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a static
  --> $DIR/missing_doc.rs:73:1
   |
LL | static BAR: u32 = 0;
   | ^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a static
  --> $DIR/missing_doc.rs:80:1
   |
LL | pub static BAR4: u32 = 0;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a module
  --> $DIR/missing_doc.rs:82:1
   |
LL | / mod internal_impl {
LL | |     /// dox
LL | |     pub fn documented() {}
LL | |     pub fn undocumented1() {}
...  |
LL | |     }
LL | | }
   | |_^

error: missing documentation for a function
  --> $DIR/missing_doc.rs:85:5
   |
LL |     pub fn undocumented1() {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a function
  --> $DIR/missing_doc.rs:86:5
   |
LL |     pub fn undocumented2() {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a function
  --> $DIR/missing_doc.rs:87:5
   |
LL |     fn undocumented3() {}
   |     ^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a function
  --> $DIR/missing_doc.rs:92:9
   |
LL |         pub fn also_undocumented1() {}
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a function
  --> $DIR/missing_doc.rs:93:9
   |
LL |         fn also_undocumented2() {}
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 24 previous errors