Skip to content

Commit 329e224

Browse files
committed
Remove large-digit-groups test from literals.rs
1 parent 4368771 commit 329e224

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

tests/ui/literals.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![warn(clippy::large_digit_groups)]
1+
// tests no rustfixable lints
2+
23
#![warn(clippy::mixed_case_hex_literals)]
34
#![warn(clippy::zero_prefixed_literal)]
45
#![allow(clippy::unseparated_literal_suffix)]
@@ -28,8 +29,6 @@ fn main() {
2829
let ok16 = 0xFE_BAFE_ABAB_ABCD;
2930
let ok17 = 0x123_4567_8901_usize;
3031

31-
let fail13 = 0x1_23456_78901_usize;
32-
3332
let fail19 = 12_3456_21;
3433
let fail22 = 3__4___23;
3534
let fail23 = 3__16___23;

tests/ui/literals.stderr

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
error: inconsistent casing in hexadecimal literal
2-
--> $DIR/literals.rs:13:17
2+
--> $DIR/literals.rs:14:17
33
|
44
LL | let fail1 = 0xabCD;
55
| ^^^^^^
66
|
77
= note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings`
88

99
error: inconsistent casing in hexadecimal literal
10-
--> $DIR/literals.rs:14:17
10+
--> $DIR/literals.rs:15:17
1111
|
1212
LL | let fail2 = 0xabCD_u32;
1313
| ^^^^^^^^^^
1414

1515
error: inconsistent casing in hexadecimal literal
16-
--> $DIR/literals.rs:15:17
16+
--> $DIR/literals.rs:16:17
1717
|
1818
LL | let fail2 = 0xabCD_isize;
1919
| ^^^^^^^^^^^^
2020

2121
error: this is a decimal constant
22-
--> $DIR/literals.rs:16:27
22+
--> $DIR/literals.rs:17:27
2323
|
2424
LL | let fail_multi_zero = 000_123usize;
2525
| ^^^^^^^^^^^^
@@ -35,7 +35,7 @@ LL | let fail_multi_zero = 0o123usize;
3535
| ^^^^^^^^^^
3636

3737
error: this is a decimal constant
38-
--> $DIR/literals.rs:20:17
38+
--> $DIR/literals.rs:21:17
3939
|
4040
LL | let fail8 = 0123;
4141
| ^^^^
@@ -48,33 +48,25 @@ help: if you mean to use an octal constant, use `0o`
4848
LL | let fail8 = 0o123;
4949
| ^^^^^
5050

51-
error: digit groups should be smaller
52-
--> $DIR/literals.rs:31:18
53-
|
54-
LL | let fail13 = 0x1_23456_78901_usize;
55-
| ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
56-
|
57-
= note: `-D clippy::large-digit-groups` implied by `-D warnings`
58-
5951
error: digits grouped inconsistently by underscores
60-
--> $DIR/literals.rs:33:18
52+
--> $DIR/literals.rs:32:18
6153
|
6254
LL | let fail19 = 12_3456_21;
6355
| ^^^^^^^^^^ help: consider: `12_345_621`
6456
|
6557
= note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
6658

6759
error: digits grouped inconsistently by underscores
68-
--> $DIR/literals.rs:34:18
60+
--> $DIR/literals.rs:33:18
6961
|
7062
LL | let fail22 = 3__4___23;
7163
| ^^^^^^^^^ help: consider: `3_423`
7264

7365
error: digits grouped inconsistently by underscores
74-
--> $DIR/literals.rs:35:18
66+
--> $DIR/literals.rs:34:18
7567
|
7668
LL | let fail23 = 3__16___23;
7769
| ^^^^^^^^^^ help: consider: `31_623`
7870

79-
error: aborting due to 9 previous errors
71+
error: aborting due to 8 previous errors
8072

0 commit comments

Comments
 (0)