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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

215 lines
6.2 KiB
Plaintext
Raw Normal View History

2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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;
| ^^^^^^ 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
--> $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>`
--> $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 => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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 => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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 => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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::GeneratorWitnessMIR(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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::Never => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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::Tuple(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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::Alias(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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::Param(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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::Bound(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $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::Placeholder(..) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
--> $DIR/ty_tykind_usage.rs:41: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>`
--> $DIR/ty_tykind_usage.rs:42:9
|
LL | TyKind::Error(_) => (),
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind::<kind>`
2022-10-01 12:57:39 -05:00
--> $DIR/ty_tykind_usage.rs:47: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 {}
| ^^^^^^ help: try using `ty::<kind>` directly: `ty`
2018-12-06 06:49:26 -06:00
error: usage of `ty::TyKind`
2022-10-01 12:57:39 -05:00
--> $DIR/ty_tykind_usage.rs:49: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
error: usage of `ty::TyKind`
2022-10-01 12:57:39 -05:00
--> $DIR/ty_tykind_usage.rs:51:37
|
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
| ^^^^^^^^^^^
|
= help: try using `Ty` instead
error: usage of `ty::TyKind`
2022-10-01 12:57:39 -05:00
--> $DIR/ty_tykind_usage.rs:51:53
|
LL | fn ir_ty_kind<I: Interner>(bad: IrTyKind<I>) -> IrTyKind<I> {
| ^^^^^^^^^^^
|
= help: try using `Ty` instead
error: usage of `ty::TyKind::<kind>`
2022-10-01 12:57:39 -05:00
--> $DIR/ty_tykind_usage.rs:54:9
|
LL | IrTyKind::Bool
| --------^^^^^^
| |
| help: try using `ty::<kind>` directly: `ty`
2022-10-01 12:57:39 -05:00
error: aborting due to 33 previous errors
2018-12-06 06:49:26 -06:00