Skip to content

Commit cc95610

Browse files
Update ui-fulldeps test
1 parent 4f632c3 commit cc95610

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

src/test/ui-fulldeps/internal-lints/ty_tykind_usage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ fn main() {
3939
TyKind::Bound(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
4040
TyKind::Placeholder(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
4141
TyKind::Infer(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
42+
TyKind::TyAlias(..) => (), //~ ERROR usage of `ty::TyKind::<kind>`
4243
TyKind::Error(_) => (), //~ ERROR usage of `ty::TyKind::<kind>`
4344
}
4445

src/test/ui-fulldeps/internal-lints/ty_tykind_usage.stderr

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,46 +169,52 @@ LL | TyKind::Infer(..) => (),
169169
error: usage of `ty::TyKind::<kind>`
170170
--> $DIR/ty_tykind_usage.rs:42:9
171171
|
172+
LL | TyKind::TyAlias(..) => (),
173+
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
174+
175+
error: usage of `ty::TyKind::<kind>`
176+
--> $DIR/ty_tykind_usage.rs:43:9
177+
|
172178
LL | TyKind::Error(_) => (),
173179
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
174180

175181
error: usage of `ty::TyKind::<kind>`
176-
--> $DIR/ty_tykind_usage.rs:47:12
182+
--> $DIR/ty_tykind_usage.rs:48:12
177183
|
178184
LL | if let TyKind::Int(int_ty) = kind {}
179185
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
180186

181187
error: usage of `ty::TyKind`
182-
--> $DIR/ty_tykind_usage.rs:49:24
188+
--> $DIR/ty_tykind_usage.rs:50:24
183189
|
184190
LL | fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
185191
| ^^^^^^^^^^
186192
|
187193
= help: try using `Ty` instead
188194

189195
error: usage of `ty::TyKind`
190-
--> $DIR/ty_tykind_usage.rs:51:37
196+
--> $DIR/ty_tykind_usage.rs:52:37
191197
|
192198
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
193199
| ^^^^^^^^^^^
194200
|
195201
= help: try using `Ty` instead
196202

197203
error: usage of `ty::TyKind`
198-
--> $DIR/ty_tykind_usage.rs:51:53
204+
--> $DIR/ty_tykind_usage.rs:52:53
199205
|
200206
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
201207
| ^^^^^^^^^^^
202208
|
203209
= help: try using `Ty` instead
204210

205211
error: usage of `ty::TyKind::<kind>`
206-
--> $DIR/ty_tykind_usage.rs:54:9
212+
--> $DIR/ty_tykind_usage.rs:55:9
207213
|
208214
LL | IrTyKind::Bool
209215
| --------^^^^^^
210216
| |
211217
| help: try using `ty::<kind>` directly: `ty`
212218

213-
error: aborting due to 33 previous errors
219+
error: aborting due to 34 previous errors
214220

0 commit comments

Comments
 (0)