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

59 lines
1.6 KiB
Plaintext
Raw Normal View History

2018-12-06 13:49:26 +01:00
error: usage of `ty::TyKind::<kind>`
--> $DIR/ty_tykind_usage.rs:13:16
2018-12-06 13:49:26 +01:00
|
2019-09-16 19:11:57 +01:00
LL | let kind = TyKind::Bool;
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 13:49:26 +01:00
|
2020-01-22 23:57:38 +00:00
note: the lint level is defined here
--> $DIR/ty_tykind_usage.rs:11:8
2018-12-06 13:49:26 +01:00
|
2019-06-24 10:43:51 +02:00
LL | #[deny(rustc::usage_of_ty_tykind)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2018-12-06 13:49:26 +01:00
error: usage of `ty::TyKind::<kind>`
--> $DIR/ty_tykind_usage.rs:16:9
2018-12-06 13:49:26 +01:00
|
LL | TyKind::Bool => {},
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 13:49:26 +01:00
error: usage of `ty::TyKind::<kind>`
--> $DIR/ty_tykind_usage.rs:22:12
2018-12-06 13:49:26 +01:00
|
2019-09-16 19:11:57 +01:00
LL | if let TyKind::Int(int_ty) = kind {}
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 13:49:26 +01:00
error: usage of `ty::TyKind`
--> $DIR/ty_tykind_usage.rs:24:24
2018-12-06 13:49:26 +01:00
|
2019-03-21 17:10:25 +01:00
LL | fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
2018-12-06 13:49:26 +01:00
| ^^^^^^^^^^
|
2019-04-24 23:24:00 +02:00
= help: try using `Ty` instead
2018-12-06 13:49:26 +01:00
error: usage of `ty::TyKind`
--> $DIR/ty_tykind_usage.rs:26:37
|
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
| ^^^^^^^^^^^
|
= help: try using `Ty` instead
error: usage of `ty::TyKind`
--> $DIR/ty_tykind_usage.rs:26:53
|
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
| ^^^^^^^^^^^
|
= help: try using `Ty` instead
error: usage of `ty::TyKind::<kind>`
--> $DIR/ty_tykind_usage.rs:29:9
|
LL | IrTyKind::Bool
| --------^^^^^^
| |
| help: try using `ty::<kind>` directly: `ty`
error: aborting due to 7 previous errors
2018-12-06 13:49:26 +01:00