|
1 |
| -error: type `ONE_TWO_THREE` should have a camel case name such as `OneTwoThree` |
2 |
| - --> $DIR/lint-non-camel-case-types.rs:4:1 |
| 1 | +error: type `ONE_TWO_THREE` should have a camel case name |
| 2 | + --> $DIR/lint-non-camel-case-types.rs:4:8 |
3 | 3 | |
|
4 | 4 | LL | struct ONE_TWO_THREE;
|
5 |
| - | ^^^^^^^^^^^^^^^^^^^^^ |
| 5 | + | ^^^^^^^^^^^^^ help: convert the identifier to camel case: `OneTwoThree` |
6 | 6 | |
|
7 | 7 | note: lint level defined here
|
8 | 8 | --> $DIR/lint-non-camel-case-types.rs:1:11
|
9 | 9 | |
|
10 | 10 | LL | #![forbid(non_camel_case_types)]
|
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^
|
12 | 12 |
|
13 |
| -error: type `foo` should have a camel case name such as `Foo` |
14 |
| - --> $DIR/lint-non-camel-case-types.rs:7:1 |
| 13 | +error: type `foo` should have a camel case name |
| 14 | + --> $DIR/lint-non-camel-case-types.rs:7:8 |
15 | 15 | |
|
16 |
| -LL | / struct foo { //~ ERROR type `foo` should have a camel case name such as `Foo` |
17 |
| -LL | | bar: isize, |
18 |
| -LL | | } |
19 |
| - | |_^ |
| 16 | +LL | struct foo { //~ ERROR type `foo` should have a camel case name |
| 17 | + | ^^^ help: convert the identifier to camel case: `Foo` |
20 | 18 |
|
21 |
| -error: type `foo2` should have a camel case name such as `Foo2` |
22 |
| - --> $DIR/lint-non-camel-case-types.rs:11:1 |
| 19 | +error: type `foo2` should have a camel case name |
| 20 | + --> $DIR/lint-non-camel-case-types.rs:11:6 |
23 | 21 | |
|
24 |
| -LL | / enum foo2 { //~ ERROR type `foo2` should have a camel case name such as `Foo2` |
25 |
| -LL | | Bar |
26 |
| -LL | | } |
27 |
| - | |_^ |
| 22 | +LL | enum foo2 { //~ ERROR type `foo2` should have a camel case name |
| 23 | + | ^^^^ help: convert the identifier to camel case: `Foo2` |
28 | 24 |
|
29 |
| -error: type `foo3` should have a camel case name such as `Foo3` |
30 |
| - --> $DIR/lint-non-camel-case-types.rs:15:1 |
| 25 | +error: type `foo3` should have a camel case name |
| 26 | + --> $DIR/lint-non-camel-case-types.rs:15:8 |
31 | 27 | |
|
32 |
| -LL | / struct foo3 { //~ ERROR type `foo3` should have a camel case name such as `Foo3` |
33 |
| -LL | | bar: isize |
34 |
| -LL | | } |
35 |
| - | |_^ |
| 28 | +LL | struct foo3 { //~ ERROR type `foo3` should have a camel case name |
| 29 | + | ^^^^ help: convert the identifier to camel case: `Foo3` |
36 | 30 |
|
37 |
| -error: type `foo4` should have a camel case name such as `Foo4` |
38 |
| - --> $DIR/lint-non-camel-case-types.rs:19:1 |
| 31 | +error: type `foo4` should have a camel case name |
| 32 | + --> $DIR/lint-non-camel-case-types.rs:19:6 |
39 | 33 | |
|
40 |
| -LL | type foo4 = isize; //~ ERROR type `foo4` should have a camel case name such as `Foo4` |
41 |
| - | ^^^^^^^^^^^^^^^^^^ |
| 34 | +LL | type foo4 = isize; //~ ERROR type `foo4` should have a camel case name |
| 35 | + | ^^^^ help: convert the identifier to camel case: `Foo4` |
42 | 36 |
|
43 |
| -error: variant `bar` should have a camel case name such as `Bar` |
| 37 | +error: variant `bar` should have a camel case name |
44 | 38 | --> $DIR/lint-non-camel-case-types.rs:22:5
|
45 | 39 | |
|
46 |
| -LL | bar //~ ERROR variant `bar` should have a camel case name such as `Bar` |
47 |
| - | ^^^ |
| 40 | +LL | bar //~ ERROR variant `bar` should have a camel case name |
| 41 | + | ^^^ help: convert the identifier to camel case: `Bar` |
48 | 42 |
|
49 |
| -error: trait `foo6` should have a camel case name such as `Foo6` |
50 |
| - --> $DIR/lint-non-camel-case-types.rs:25:1 |
| 43 | +error: trait `foo6` should have a camel case name |
| 44 | + --> $DIR/lint-non-camel-case-types.rs:25:7 |
51 | 45 | |
|
52 |
| -LL | / trait foo6 { //~ ERROR trait `foo6` should have a camel case name such as `Foo6` |
53 |
| -LL | | fn dummy(&self) { } |
54 |
| -LL | | } |
55 |
| - | |_^ |
| 46 | +LL | trait foo6 { //~ ERROR trait `foo6` should have a camel case name |
| 47 | + | ^^^^ help: convert the identifier to camel case: `Foo6` |
56 | 48 |
|
57 |
| -error: type parameter `ty` should have a camel case name such as `Ty` |
| 49 | +error: type parameter `ty` should have a camel case name |
58 | 50 | --> $DIR/lint-non-camel-case-types.rs:29:6
|
59 | 51 | |
|
60 |
| -LL | fn f<ty>(_: ty) {} //~ ERROR type parameter `ty` should have a camel case name such as `Ty` |
61 |
| - | ^^ |
| 52 | +LL | fn f<ty>(_: ty) {} //~ ERROR type parameter `ty` should have a camel case name |
| 53 | + | ^^ help: convert the identifier to camel case: `Ty` |
62 | 54 |
|
63 |
| -error: type `X86__64` should have a camel case name such as `X86_64` |
64 |
| - --> $DIR/lint-non-camel-case-types.rs:38:1 |
| 55 | +error: type `X86__64` should have a camel case name |
| 56 | + --> $DIR/lint-non-camel-case-types.rs:38:8 |
65 | 57 | |
|
66 |
| -LL | struct X86__64; //~ ERROR type `X86__64` should have a camel case name such as `X86_64` |
67 |
| - | ^^^^^^^^^^^^^^^ |
| 58 | +LL | struct X86__64; //~ ERROR type `X86__64` should have a camel case name |
| 59 | + | ^^^^^^^ help: convert the identifier to camel case: `X86_64` |
68 | 60 |
|
69 |
| -error: type `Abc_123` should have a camel case name such as `Abc123` |
70 |
| - --> $DIR/lint-non-camel-case-types.rs:40:1 |
| 61 | +error: type `Abc_123` should have a camel case name |
| 62 | + --> $DIR/lint-non-camel-case-types.rs:40:8 |
71 | 63 | |
|
72 |
| -LL | struct Abc_123; //~ ERROR type `Abc_123` should have a camel case name such as `Abc123` |
73 |
| - | ^^^^^^^^^^^^^^^ |
| 64 | +LL | struct Abc_123; //~ ERROR type `Abc_123` should have a camel case name |
| 65 | + | ^^^^^^^ help: convert the identifier to camel case: `Abc123` |
74 | 66 |
|
75 |
| -error: type `A1_b2_c3` should have a camel case name such as `A1B2C3` |
76 |
| - --> $DIR/lint-non-camel-case-types.rs:42:1 |
| 67 | +error: type `A1_b2_c3` should have a camel case name |
| 68 | + --> $DIR/lint-non-camel-case-types.rs:42:8 |
77 | 69 | |
|
78 |
| -LL | struct A1_b2_c3; //~ ERROR type `A1_b2_c3` should have a camel case name such as `A1B2C3` |
79 |
| - | ^^^^^^^^^^^^^^^^ |
| 70 | +LL | struct A1_b2_c3; //~ ERROR type `A1_b2_c3` should have a camel case name |
| 71 | + | ^^^^^^^^ help: convert the identifier to camel case: `A1B2C3` |
80 | 72 |
|
81 | 73 | error: aborting due to 11 previous errors
|
82 | 74 |
|
0 commit comments