2018-12-06 06:49:26 -06:00
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:13:16
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-09-16 13:11:57 -05:00
|
|
|
LL | let kind = TyKind::Bool;
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:11:8
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-06-24 03:43:51 -05:00
|
|
|
LL | #[deny(rustc::usage_of_ty_tykind)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:16:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Bool => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:17:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Char => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:18:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Int(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:19:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Uint(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:20:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Float(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:21:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Adt(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:22:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Foreign(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:23:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Str => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:24:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Array(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:25:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Slice(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:26:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::RawPtr(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:27:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Ref(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:28:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::FnDef(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:29:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::FnPtr(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:30:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Dynamic(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:31:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Closure(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:32:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::Generator(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:33:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | TyKind::GeneratorWitness(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2022-05-26 22:22:28 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:34:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2022-10-01 12:57:39 -05:00
|
|
|
LL | TyKind::Never => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:35:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2022-10-01 12:57:39 -05:00
|
|
|
LL | TyKind::Tuple(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:36:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2022-10-01 12:57:39 -05:00
|
|
|
LL | TyKind::Alias(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:37:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2022-10-01 12:57:39 -05:00
|
|
|
LL | TyKind::Param(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:38:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2022-10-01 12:57:39 -05:00
|
|
|
LL | TyKind::Bound(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:39:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2022-10-01 12:57:39 -05:00
|
|
|
LL | TyKind::Placeholder(..) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:40:9
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2022-10-01 12:57:39 -05:00
|
|
|
LL | TyKind::Infer(..) => (),
|
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:41:9
|
2022-10-01 12:57:39 -05:00
|
|
|
|
|
2020-05-05 23:02:09 -05:00
|
|
|
LL | TyKind::Error(_) => (),
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:46:12
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-09-16 13:11:57 -05:00
|
|
|
LL | if let TyKind::Int(int_ty) = kind {}
|
2022-05-26 22:22:28 -05:00
|
|
|
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
|
|
error: usage of `ty::TyKind`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:48:24
|
2018-12-06 06:49:26 -06:00
|
|
|
|
|
2019-03-21 11:10:25 -05:00
|
|
|
LL | fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
|
2018-12-06 06:49:26 -06:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2019-04-24 16:24:00 -05:00
|
|
|
= help: try using `Ty` instead
|
2018-12-06 06:49:26 -06:00
|
|
|
|
2022-05-26 22:22:28 -05:00
|
|
|
error: usage of `ty::TyKind`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:50:37
|
2022-05-26 22:22:28 -05:00
|
|
|
|
|
|
|
|
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try using `Ty` instead
|
|
|
|
|
|
|
|
error: usage of `ty::TyKind`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:50:53
|
2022-05-26 22:22:28 -05:00
|
|
|
|
|
|
|
|
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try using `Ty` instead
|
|
|
|
|
|
|
|
error: usage of `ty::TyKind::<kind>`
|
2023-08-03 08:47:04 -05:00
|
|
|
--> $DIR/ty_tykind_usage.rs:53:9
|
2022-05-26 22:22:28 -05:00
|
|
|
|
|
|
|
|
LL | IrTyKind::Bool
|
|
|
|
| --------^^^^^^
|
|
|
|
| |
|
|
|
|
| help: try using `ty::<kind>` directly: `ty`
|
|
|
|
|
2023-08-03 08:47:04 -05:00
|
|
|
error: aborting due to 32 previous errors
|
2018-12-06 06:49:26 -06:00
|
|
|
|