summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-missing-doc.stderr
blob: 4e9ee4f276962212d007855da4ec3452544425bb (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
error: missing documentation for a type alias
  --> $DIR/lint-missing-doc.rs:16:1
   |
LL | pub type PubTypedef = String;
   | ^^^^^^^^^^^^^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/lint-missing-doc.rs:4:9
   |
LL | #![deny(missing_docs)]
   |         ^^^^^^^^^^^^

error: missing documentation for a struct
  --> $DIR/lint-missing-doc.rs:23:1
   |
LL | pub struct PubFoo {
   | ^^^^^^^^^^^^^^^^^

error: missing documentation for a struct field
  --> $DIR/lint-missing-doc.rs:24:5
   |
LL |     pub a: isize,
   |     ^^^^^^^^^^^^

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

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

error: missing documentation for a trait
  --> $DIR/lint-missing-doc.rs:57:1
   |
LL | pub trait C {
   | ^^^^^^^^^^^

error: missing documentation for a method
  --> $DIR/lint-missing-doc.rs:58:5
   |
LL |     fn foo(&self);
   |     ^^^^^^^^^^^^^^

error: missing documentation for a method
  --> $DIR/lint-missing-doc.rs:59:5
   |
LL |     fn foo_with_impl(&self) {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for an associated function
  --> $DIR/lint-missing-doc.rs:60:5
   |
LL |     fn foo_no_self();
   |     ^^^^^^^^^^^^^^^^^

error: missing documentation for an associated function
  --> $DIR/lint-missing-doc.rs:61:5
   |
LL |     fn foo_no_self_with_impl() {}
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for an associated type
  --> $DIR/lint-missing-doc.rs:71:5
   |
LL |     type AssociatedType;
   |     ^^^^^^^^^^^^^^^^^^^

error: missing documentation for an associated type
  --> $DIR/lint-missing-doc.rs:72:5
   |
LL |     type AssociatedTypeDef = Self;
   |     ^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for an associated function
  --> $DIR/lint-missing-doc.rs:88:5
   |
LL |     pub fn foo() {}
   |     ^^^^^^^^^^^^

error: missing documentation for an enum
  --> $DIR/lint-missing-doc.rs:125:1
   |
LL | pub enum PubBaz {
   | ^^^^^^^^^^^^^^^

error: missing documentation for a variant
  --> $DIR/lint-missing-doc.rs:126:5
   |
LL |     PubBazA {
   |     ^^^^^^^

error: missing documentation for a struct field
  --> $DIR/lint-missing-doc.rs:127:9
   |
LL |         a: isize,
   |         ^^^^^^^^

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

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

error: missing documentation for a function
  --> $DIR/lint-missing-doc.rs:196:5
   |
LL |     pub fn extern_fn_undocumented(f: f32) -> f32;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a static
  --> $DIR/lint-missing-doc.rs:201:5
   |
LL |     pub static EXTERN_STATIC_UNDOCUMENTED: u8;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a foreign type
  --> $DIR/lint-missing-doc.rs:206:5
   |
LL |     pub type ExternTyUndocumented;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing documentation for a trait alias
  --> $DIR/lint-missing-doc.rs:210:1
   |
LL | pub trait T = Sync;
   | ^^^^^^^^^^^

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

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

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

error: aborting due to 25 previous errors