@@ -25,6 +25,7 @@ error: inconsistent casing in hexadecimal literal
2525LL | let fail1 = 0xabCD;
2626 | ^^^^^^
2727 |
28+ = help: consider using `0xabcd` or `0xABCD`
2829 = note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings`
2930 = help: to override `-D warnings` add `#[allow(clippy::mixed_case_hex_literals)]`
3031
@@ -39,6 +40,8 @@ error: inconsistent casing in hexadecimal literal
3940 |
4041LL | let fail2 = 0xabCD_u32;
4142 | ^^^^^^^^^^
43+ |
44+ = help: consider using `0xabcd_u32` or `0xABCD_u32`
4245
4346error: integer type suffix should not be separated by an underscore
4447 --> tests/ui/literals.rs:29:17
@@ -51,9 +54,25 @@ error: inconsistent casing in hexadecimal literal
5154 |
5255LL | let fail2 = 0xabCD_isize;
5356 | ^^^^^^^^^^^^
57+ |
58+ = help: consider using `0xabcd_isize` or `0xABCD_isize`
59+
60+ error: integer type suffix should not be separated by an underscore
61+ --> tests/ui/literals.rs:33:17
62+ |
63+ LL | let fail2 = 0xab_CD_isize;
64+ | ^^^^^^^^^^^^^ help: remove the underscore: `0xab_CDisize`
65+
66+ error: inconsistent casing in hexadecimal literal
67+ --> tests/ui/literals.rs:33:17
68+ |
69+ LL | let fail2 = 0xab_CD_isize;
70+ | ^^^^^^^^^^^^^
71+ |
72+ = help: consider using `0xab_cd_isize` or `0xAB_CD_isize`
5473
5574error: integer type suffix should be separated by an underscore
56- --> tests/ui/literals.rs:33 :27
75+ --> tests/ui/literals.rs:37 :27
5776 |
5877LL | let fail_multi_zero = 000_123usize;
5978 | ^^^^^^^^^^^^ help: add an underscore: `000_123_usize`
@@ -62,7 +81,7 @@ LL | let fail_multi_zero = 000_123usize;
6281 = help: to override `-D warnings` add `#[allow(clippy::unseparated_literal_suffix)]`
6382
6483error: this is a decimal constant
65- --> tests/ui/literals.rs:33 :27
84+ --> tests/ui/literals.rs:37 :27
6685 |
6786LL | let fail_multi_zero = 000_123usize;
6887 | ^^^^^^^^^^^^
@@ -79,13 +98,13 @@ LL | let fail_multi_zero = 0o123usize;
7998 | ~~~~~~~~~~
8099
81100error: integer type suffix should not be separated by an underscore
82- --> tests/ui/literals.rs:38 :16
101+ --> tests/ui/literals.rs:42 :16
83102 |
84103LL | let ok10 = 0_i64;
85104 | ^^^^^ help: remove the underscore: `0i64`
86105
87106error: this is a decimal constant
88- --> tests/ui/literals.rs:41 :17
107+ --> tests/ui/literals.rs:45 :17
89108 |
90109LL | let fail8 = 0123;
91110 | ^^^^
@@ -100,13 +119,13 @@ LL | let fail8 = 0o123;
100119 | ~~~~~
101120
102121error: integer type suffix should not be separated by an underscore
103- --> tests/ui/literals.rs:51 :16
122+ --> tests/ui/literals.rs:55 :16
104123 |
105124LL | let ok17 = 0x123_4567_8901_usize;
106125 | ^^^^^^^^^^^^^^^^^^^^^ help: remove the underscore: `0x123_4567_8901usize`
107126
108127error: digits grouped inconsistently by underscores
109- --> tests/ui/literals.rs:56 :18
128+ --> tests/ui/literals.rs:60 :18
110129 |
111130LL | let fail19 = 12_3456_21;
112131 | ^^^^^^^^^^ help: consider: `12_345_621`
@@ -115,19 +134,19 @@ LL | let fail19 = 12_3456_21;
115134 = help: to override `-D warnings` add `#[allow(clippy::inconsistent_digit_grouping)]`
116135
117136error: digits grouped inconsistently by underscores
118- --> tests/ui/literals.rs:59 :18
137+ --> tests/ui/literals.rs:63 :18
119138 |
120139LL | let fail22 = 3__4___23;
121140 | ^^^^^^^^^ help: consider: `3_423`
122141
123142error: digits grouped inconsistently by underscores
124- --> tests/ui/literals.rs:62 :18
143+ --> tests/ui/literals.rs:66 :18
125144 |
126145LL | let fail23 = 3__16___23;
127146 | ^^^^^^^^^^ help: consider: `31_623`
128147
129148error: digits of hex, binary or octal literal not in groups of equal size
130- --> tests/ui/literals.rs:65 :18
149+ --> tests/ui/literals.rs:69 :18
131150 |
132151LL | let fail24 = 0xAB_ABC_AB;
133152 | ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB`
@@ -136,7 +155,7 @@ LL | let fail24 = 0xAB_ABC_AB;
136155 = help: to override `-D warnings` add `#[allow(clippy::unusual_byte_groupings)]`
137156
138157error: this is a decimal constant
139- --> tests/ui/literals.rs:75 :13
158+ --> tests/ui/literals.rs:79 :13
140159 |
141160LL | let _ = 08;
142161 | ^^
@@ -147,7 +166,7 @@ LL | let _ = 8;
147166 | ~
148167
149168error: this is a decimal constant
150- --> tests/ui/literals.rs:78 :13
169+ --> tests/ui/literals.rs:82 :13
151170 |
152171LL | let _ = 09;
153172 | ^^
@@ -158,7 +177,7 @@ LL | let _ = 9;
158177 | ~
159178
160179error: this is a decimal constant
161- --> tests/ui/literals.rs:81 :13
180+ --> tests/ui/literals.rs:85 :13
162181 |
163182LL | let _ = 089;
164183 | ^^^
@@ -168,5 +187,5 @@ help: if you mean to use a decimal constant, remove the `0` to avoid confusion
168187LL | let _ = 89;
169188 | ~~
170189
171- error: aborting due to 20 previous errors
190+ error: aborting due to 22 previous errors
172191
0 commit comments