fork/rust

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

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

master
6.0 KiB208 linesraw
1error: usage of `ty::TyKind::<kind>`
2  --> $DIR/ty_tykind_usage.rs:13:16
3   |
4LL |     let kind = TyKind::Bool;
5   |                ^^^^^^ help: try using `ty::<kind>` directly: `ty`
6   |
7note: the lint level is defined here
8  --> $DIR/ty_tykind_usage.rs:11:8
9   |
10LL | #[deny(rustc::usage_of_ty_tykind)]
11   |        ^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: usage of `ty::TyKind::<kind>`
14  --> $DIR/ty_tykind_usage.rs:16:9
15   |
16LL |         TyKind::Bool => (),
17   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
18
19error: usage of `ty::TyKind::<kind>`
20  --> $DIR/ty_tykind_usage.rs:17:9
21   |
22LL |         TyKind::Char => (),
23   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
24
25error: usage of `ty::TyKind::<kind>`
26  --> $DIR/ty_tykind_usage.rs:18:9
27   |
28LL |         TyKind::Int(..) => (),
29   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
30
31error: usage of `ty::TyKind::<kind>`
32  --> $DIR/ty_tykind_usage.rs:19:9
33   |
34LL |         TyKind::Uint(..) => (),
35   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
36
37error: usage of `ty::TyKind::<kind>`
38  --> $DIR/ty_tykind_usage.rs:20:9
39   |
40LL |         TyKind::Float(..) => (),
41   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
42
43error: usage of `ty::TyKind::<kind>`
44  --> $DIR/ty_tykind_usage.rs:21:9
45   |
46LL |         TyKind::Adt(..) => (),
47   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
48
49error: usage of `ty::TyKind::<kind>`
50  --> $DIR/ty_tykind_usage.rs:22:9
51   |
52LL |         TyKind::Foreign(..) => (),
53   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
54
55error: usage of `ty::TyKind::<kind>`
56  --> $DIR/ty_tykind_usage.rs:23:9
57   |
58LL |         TyKind::Str => (),
59   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
60
61error: usage of `ty::TyKind::<kind>`
62  --> $DIR/ty_tykind_usage.rs:24:9
63   |
64LL |         TyKind::Array(..) => (),
65   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
66
67error: usage of `ty::TyKind::<kind>`
68  --> $DIR/ty_tykind_usage.rs:25:9
69   |
70LL |         TyKind::Slice(..) => (),
71   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
72
73error: usage of `ty::TyKind::<kind>`
74  --> $DIR/ty_tykind_usage.rs:26:9
75   |
76LL |         TyKind::RawPtr(..) => (),
77   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
78
79error: usage of `ty::TyKind::<kind>`
80  --> $DIR/ty_tykind_usage.rs:27:9
81   |
82LL |         TyKind::Ref(..) => (),
83   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
84
85error: usage of `ty::TyKind::<kind>`
86  --> $DIR/ty_tykind_usage.rs:28:9
87   |
88LL |         TyKind::FnDef(..) => (),
89   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
90
91error: usage of `ty::TyKind::<kind>`
92  --> $DIR/ty_tykind_usage.rs:29:9
93   |
94LL |         TyKind::FnPtr(..) => (),
95   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
96
97error: usage of `ty::TyKind::<kind>`
98  --> $DIR/ty_tykind_usage.rs:30:9
99   |
100LL |         TyKind::Dynamic(..) => (),
101   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
102
103error: usage of `ty::TyKind::<kind>`
104  --> $DIR/ty_tykind_usage.rs:31:9
105   |
106LL |         TyKind::Closure(..) => (),
107   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
108
109error: usage of `ty::TyKind::<kind>`
110  --> $DIR/ty_tykind_usage.rs:32:9
111   |
112LL |         TyKind::Generator(..) => (),
113   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
114
115error: usage of `ty::TyKind::<kind>`
116  --> $DIR/ty_tykind_usage.rs:33:9
117   |
118LL |         TyKind::GeneratorWitness(..) => (),
119   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
120
121error: usage of `ty::TyKind::<kind>`
122  --> $DIR/ty_tykind_usage.rs:34:9
123   |
124LL |         TyKind::Never => (),
125   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
126
127error: usage of `ty::TyKind::<kind>`
128  --> $DIR/ty_tykind_usage.rs:35:9
129   |
130LL |         TyKind::Tuple(..) => (),
131   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
132
133error: usage of `ty::TyKind::<kind>`
134  --> $DIR/ty_tykind_usage.rs:36:9
135   |
136LL |         TyKind::Alias(..) => (),
137   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
138
139error: usage of `ty::TyKind::<kind>`
140  --> $DIR/ty_tykind_usage.rs:37:9
141   |
142LL |         TyKind::Param(..) => (),
143   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
144
145error: usage of `ty::TyKind::<kind>`
146  --> $DIR/ty_tykind_usage.rs:38:9
147   |
148LL |         TyKind::Bound(..) => (),
149   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
150
151error: usage of `ty::TyKind::<kind>`
152  --> $DIR/ty_tykind_usage.rs:39:9
153   |
154LL |         TyKind::Placeholder(..) => (),
155   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
156
157error: usage of `ty::TyKind::<kind>`
158  --> $DIR/ty_tykind_usage.rs:40:9
159   |
160LL |         TyKind::Infer(..) => (),
161   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
162
163error: usage of `ty::TyKind::<kind>`
164  --> $DIR/ty_tykind_usage.rs:41:9
165   |
166LL |         TyKind::Error(_) => (),
167   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`
168
169error: usage of `ty::TyKind::<kind>`
170  --> $DIR/ty_tykind_usage.rs:46:12
171   |
172LL |     if let TyKind::Int(int_ty) = kind {}
173   |            ^^^^^^ help: try using `ty::<kind>` directly: `ty`
174
175error: usage of `ty::TyKind`
176  --> $DIR/ty_tykind_usage.rs:48:24
177   |
178LL |     fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
179   |                        ^^^^^^^^^^
180   |
181   = help: try using `Ty` instead
182
183error: usage of `ty::TyKind`
184  --> $DIR/ty_tykind_usage.rs:50:37
185   |
186LL |     fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
187   |                                     ^^^^^^^^^^^
188   |
189   = help: try using `Ty` instead
190
191error: usage of `ty::TyKind`
192  --> $DIR/ty_tykind_usage.rs:50:53
193   |
194LL |     fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
195   |                                                     ^^^^^^^^^^^
196   |
197   = help: try using `Ty` instead
198
199error: usage of `ty::TyKind::<kind>`
200  --> $DIR/ty_tykind_usage.rs:53:9
201   |
202LL |         IrTyKind::Bool
203   |         --------^^^^^^
204   |         |
205   |         help: try using `ty::<kind>` directly: `ty`
206
207error: aborting due to 32 previous errors
208