fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.8 KiB158 linesraw
1error: missing documentation for a type alias
2  --> $DIR/lint-missing-doc.rs:16:1
3   |
4LL | pub type PubTypedef = String;
5   | ^^^^^^^^^^^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/lint-missing-doc.rs:4:9
9   |
10LL | #![deny(missing_docs)]
11   |         ^^^^^^^^^^^^
12
13error: missing documentation for a struct
14  --> $DIR/lint-missing-doc.rs:23:1
15   |
16LL | pub struct PubFoo {
17   | ^^^^^^^^^^^^^^^^^
18
19error: missing documentation for a struct field
20  --> $DIR/lint-missing-doc.rs:24:5
21   |
22LL |     pub a: isize,
23   |     ^^^^^^^^^^^^
24
25error: missing documentation for a module
26  --> $DIR/lint-missing-doc.rs:35:1
27   |
28LL | pub mod pub_module_no_dox {}
29   | ^^^^^^^^^^^^^^^^^^^^^^^^^
30
31error: missing documentation for a function
32  --> $DIR/lint-missing-doc.rs:39:1
33   |
34LL | pub fn foo2() {}
35   | ^^^^^^^^^^^^^
36
37error: missing documentation for a trait
38  --> $DIR/lint-missing-doc.rs:57:1
39   |
40LL | pub trait C {
41   | ^^^^^^^^^^^
42
43error: missing documentation for a method
44  --> $DIR/lint-missing-doc.rs:58:5
45   |
46LL |     fn foo(&self);
47   |     ^^^^^^^^^^^^^^
48
49error: missing documentation for a method
50  --> $DIR/lint-missing-doc.rs:59:5
51   |
52LL |     fn foo_with_impl(&self) {}
53   |     ^^^^^^^^^^^^^^^^^^^^^^^
54
55error: missing documentation for an associated function
56  --> $DIR/lint-missing-doc.rs:60:5
57   |
58LL |     fn foo_no_self();
59   |     ^^^^^^^^^^^^^^^^^
60
61error: missing documentation for an associated function
62  --> $DIR/lint-missing-doc.rs:61:5
63   |
64LL |     fn foo_no_self_with_impl() {}
65   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
66
67error: missing documentation for an associated type
68  --> $DIR/lint-missing-doc.rs:71:5
69   |
70LL |     type AssociatedType;
71   |     ^^^^^^^^^^^^^^^^^^^
72
73error: missing documentation for an associated type
74  --> $DIR/lint-missing-doc.rs:72:5
75   |
76LL |     type AssociatedTypeDef = Self;
77   |     ^^^^^^^^^^^^^^^^^^^^^^
78
79error: missing documentation for an associated function
80  --> $DIR/lint-missing-doc.rs:88:5
81   |
82LL |     pub fn foo() {}
83   |     ^^^^^^^^^^^^
84
85error: missing documentation for an enum
86  --> $DIR/lint-missing-doc.rs:125:1
87   |
88LL | pub enum PubBaz {
89   | ^^^^^^^^^^^^^^^
90
91error: missing documentation for a variant
92  --> $DIR/lint-missing-doc.rs:126:5
93   |
94LL |     PubBazA {
95   |     ^^^^^^^
96
97error: missing documentation for a struct field
98  --> $DIR/lint-missing-doc.rs:127:9
99   |
100LL |         a: isize,
101   |         ^^^^^^^^
102
103error: missing documentation for a constant
104  --> $DIR/lint-missing-doc.rs:158:1
105   |
106LL | pub const FOO4: u32 = 0;
107   | ^^^^^^^^^^^^^^^^^^^
108
109error: missing documentation for a static
110  --> $DIR/lint-missing-doc.rs:168:1
111   |
112LL | pub static BAR4: u32 = 0;
113   | ^^^^^^^^^^^^^^^^^^^^
114
115error: missing documentation for a function
116  --> $DIR/lint-missing-doc.rs:196:5
117   |
118LL |     pub fn extern_fn_undocumented(f: f32) -> f32;
119   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
120
121error: missing documentation for a static
122  --> $DIR/lint-missing-doc.rs:201:5
123   |
124LL |     pub static EXTERN_STATIC_UNDOCUMENTED: u8;
125   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
126
127error: missing documentation for a foreign type
128  --> $DIR/lint-missing-doc.rs:206:5
129   |
130LL |     pub type ExternTyUndocumented;
131   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
132
133error: missing documentation for a trait alias
134  --> $DIR/lint-missing-doc.rs:210:1
135   |
136LL | pub trait T = Sync;
137   | ^^^^^^^^^^^
138
139error: missing documentation for a function
140  --> $DIR/lint-missing-doc.rs:174:5
141   |
142LL |     pub fn undocumented1() {}
143   |     ^^^^^^^^^^^^^^^^^^^^^^
144
145error: missing documentation for a function
146  --> $DIR/lint-missing-doc.rs:175:5
147   |
148LL |     pub fn undocumented2() {}
149   |     ^^^^^^^^^^^^^^^^^^^^^^
150
151error: missing documentation for a function
152  --> $DIR/lint-missing-doc.rs:181:9
153   |
154LL |         pub fn also_undocumented1() {}
155   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
156
157error: aborting due to 25 previous errors
158