about summary refs log tree commit diff
path: root/tests/ui-fulldeps/internal-lints/ty_tykind_usage.stderr
blob: 19a73b36bfee03dab050cb6be276ec0c22536c0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
error: usage of `ty::TyKind::<kind>`
  --> $DIR/ty_tykind_usage.rs:13:16
   |
LL |     let kind = TyKind::Bool;
   |                ^^^^^^ help: try using `ty::<kind>` directly: `ty`
   |
note: the lint level is defined here
  --> $DIR/ty_tykind_usage.rs:11:8
   |
LL | #[deny(rustc::usage_of_ty_tykind)]
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^

error: usage of `ty::TyKind::<kind>`
  --> $DIR/ty_tykind_usage.rs:16:9
   |
LL |         TyKind::Bool => {},
   |         ^^^^^^ help: try using `ty::<kind>` directly: `ty`

error: usage of `ty::TyKind::<kind>`
  --> $DIR/ty_tykind_usage.rs:22:12
   |
LL |     if let TyKind::Int(int_ty) = kind {}
   |            ^^^^^^ help: try using `ty::<kind>` directly: `ty`

error: usage of `ty::TyKind`
  --> $DIR/ty_tykind_usage.rs:24:24
   |
LL |     fn ty_kind(ty_bad: TyKind<'_>, ty_good: Ty<'_>) {}
   |                        ^^^^^^^^^^
   |
   = help: try using `Ty` instead

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