@@ -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 | ^^^^^^^^^^^^
@@ -81,13 +100,13 @@ LL + let fail_multi_zero = 0o123usize;
81100 |
82101
83102error: integer type suffix should not be separated by an underscore
84- --> tests/ui/literals.rs:38 :16
103+ --> tests/ui/literals.rs:42 :16
85104 |
86105LL | let ok10 = 0_i64;
87106 | ^^^^^ help: remove the underscore: `0i64`
88107
89108error: this is a decimal constant
90- --> tests/ui/literals.rs:41 :17
109+ --> tests/ui/literals.rs:45 :17
91110 |
92111LL | let fail8 = 0123;
93112 | ^^^^
@@ -103,13 +122,13 @@ LL | let fail8 = 0o123;
103122 | +
104123
105124error: integer type suffix should not be separated by an underscore
106- --> tests/ui/literals.rs:51 :16
125+ --> tests/ui/literals.rs:55 :16
107126 |
108127LL | let ok17 = 0x123_4567_8901_usize;
109128 | ^^^^^^^^^^^^^^^^^^^^^ help: remove the underscore: `0x123_4567_8901usize`
110129
111130error: digits grouped inconsistently by underscores
112- --> tests/ui/literals.rs:56 :18
131+ --> tests/ui/literals.rs:60 :18
113132 |
114133LL | let fail19 = 12_3456_21;
115134 | ^^^^^^^^^^ help: consider: `12_345_621`
@@ -118,19 +137,19 @@ LL | let fail19 = 12_3456_21;
118137 = help: to override `-D warnings` add `#[allow(clippy::inconsistent_digit_grouping)]`
119138
120139error: digits grouped inconsistently by underscores
121- --> tests/ui/literals.rs:59 :18
140+ --> tests/ui/literals.rs:63 :18
122141 |
123142LL | let fail22 = 3__4___23;
124143 | ^^^^^^^^^ help: consider: `3_423`
125144
126145error: digits grouped inconsistently by underscores
127- --> tests/ui/literals.rs:62 :18
146+ --> tests/ui/literals.rs:66 :18
128147 |
129148LL | let fail23 = 3__16___23;
130149 | ^^^^^^^^^^ help: consider: `31_623`
131150
132151error: digits of hex, binary or octal literal not in groups of equal size
133- --> tests/ui/literals.rs:65 :18
152+ --> tests/ui/literals.rs:69 :18
134153 |
135154LL | let fail24 = 0xAB_ABC_AB;
136155 | ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB`
@@ -139,7 +158,7 @@ LL | let fail24 = 0xAB_ABC_AB;
139158 = help: to override `-D warnings` add `#[allow(clippy::unusual_byte_groupings)]`
140159
141160error: this is a decimal constant
142- --> tests/ui/literals.rs:75 :13
161+ --> tests/ui/literals.rs:79 :13
143162 |
144163LL | let _ = 08;
145164 | ^^
@@ -151,7 +170,7 @@ LL + let _ = 8;
151170 |
152171
153172error: this is a decimal constant
154- --> tests/ui/literals.rs:78 :13
173+ --> tests/ui/literals.rs:82 :13
155174 |
156175LL | let _ = 09;
157176 | ^^
@@ -163,7 +182,7 @@ LL + let _ = 9;
163182 |
164183
165184error: this is a decimal constant
166- --> tests/ui/literals.rs:81 :13
185+ --> tests/ui/literals.rs:85 :13
167186 |
168187LL | let _ = 089;
169188 | ^^^
@@ -174,5 +193,5 @@ LL - let _ = 089;
174193LL + let _ = 89;
175194 |
176195
177- error: aborting due to 20 previous errors
196+ error: aborting due to 22 previous errors
178197
0 commit comments