Skip to content

Commit c51fc38

Browse files
committed
Bless ui-fulldeps.
1 parent 0e52a67 commit c51fc38

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

tests/ui-fulldeps/internal-lints/ty_tykind_usage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ fn main() {
3131
TyKind::Closure(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
3232
TyKind::Generator(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
3333
TyKind::GeneratorWitness(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
34+
TyKind::GeneratorWitnessMIR(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
3435
TyKind::Never => (), //~ ERROR usage of `ty::TyKind::<kind>`
3536
TyKind::Tuple(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
3637
TyKind::Alias(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`

tests/ui-fulldeps/internal-lints/ty_tykind_usage.stderr

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,88 +121,94 @@ LL | TyKind::GeneratorWitness(..) => (),
121121
error: usage of `ty::TyKind::<kind>`
122122
--> $DIR/ty_tykind_usage.rs:34:9
123123
|
124-
LL | TyKind::Never => (),
124+
LL | TyKind::GeneratorWitnessMIR(..) => (),
125125
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
126126

127127
error: usage of `ty::TyKind::<kind>`
128128
--> $DIR/ty_tykind_usage.rs:35:9
129129
|
130-
LL | TyKind::Tuple(..) => (),
130+
LL | TyKind::Never => (),
131131
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
132132

133133
error: usage of `ty::TyKind::<kind>`
134134
--> $DIR/ty_tykind_usage.rs:36:9
135135
|
136-
LL | TyKind::Alias(..) => (),
136+
LL | TyKind::Tuple(..) => (),
137137
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
138138

139139
error: usage of `ty::TyKind::<kind>`
140140
--> $DIR/ty_tykind_usage.rs:37:9
141141
|
142-
LL | TyKind::Param(..) => (),
142+
LL | TyKind::Alias(..) => (),
143143
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
144144

145145
error: usage of `ty::TyKind::<kind>`
146146
--> $DIR/ty_tykind_usage.rs:38:9
147147
|
148-
LL | TyKind::Bound(..) => (),
148+
LL | TyKind::Param(..) => (),
149149
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
150150

151151
error: usage of `ty::TyKind::<kind>`
152152
--> $DIR/ty_tykind_usage.rs:39:9
153153
|
154-
LL | TyKind::Placeholder(..) => (),
154+
LL | TyKind::Bound(..) => (),
155155
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
156156

157157
error: usage of `ty::TyKind::<kind>`
158158
--> $DIR/ty_tykind_usage.rs:40:9
159159
|
160-
LL | TyKind::Infer(..) => (),
160+
LL | TyKind::Placeholder(..) => (),
161161
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
162162

163163
error: usage of `ty::TyKind::<kind>`
164164
--> $DIR/ty_tykind_usage.rs:41:9
165165
|
166+
LL | TyKind::Infer(..) => (),
167+
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
168+
169+
error: usage of `ty::TyKind::<kind>`
170+
--> $DIR/ty_tykind_usage.rs:42:9
171+
|
166172
LL | TyKind::Error(_) => (),
167173
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
168174

169175
error: usage of `ty::TyKind::<kind>`
170-
--> $DIR/ty_tykind_usage.rs:46:12
176+
--> $DIR/ty_tykind_usage.rs:47:12
171177
|
172178
LL | if let TyKind::Int(int_ty) = kind {}
173179
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
174180

175181
error: usage of `ty::TyKind`
176-
--> $DIR/ty_tykind_usage.rs:48:24
182+
--> $DIR/ty_tykind_usage.rs:49:24
177183
|
178184
LL | fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
179185
| ^^^^^^^^^^
180186
|
181187
= help: try using `Ty` instead
182188

183189
error: usage of `ty::TyKind`
184-
--> $DIR/ty_tykind_usage.rs:50:37
190+
--> $DIR/ty_tykind_usage.rs:51:37
185191
|
186192
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
187193
| ^^^^^^^^^^^
188194
|
189195
= help: try using `Ty` instead
190196

191197
error: usage of `ty::TyKind`
192-
--> $DIR/ty_tykind_usage.rs:50:53
198+
--> $DIR/ty_tykind_usage.rs:51:53
193199
|
194200
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
195201
| ^^^^^^^^^^^
196202
|
197203
= help: try using `Ty` instead
198204

199205
error: usage of `ty::TyKind::<kind>`
200-
--> $DIR/ty_tykind_usage.rs:53:9
206+
--> $DIR/ty_tykind_usage.rs:54:9
201207
|
202208
LL | IrTyKind::Bool
203209
| --------^^^^^^
204210
| |
205211
| help: try using `ty::<kind>` directly: `ty`
206212

207-
error: aborting due to 32 previous errors
213+
error: aborting due to 33 previous errors
208214

0 commit comments

Comments
 (0)