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