diff --git a/clippy_tests/examples/inconsistent_digit_grouping.stderr b/clippy_tests/examples/inconsistent_digit_grouping.stderr index f86353eb266..ba2bc305d8d 100644 --- a/clippy_tests/examples/inconsistent_digit_grouping.stderr +++ b/clippy_tests/examples/inconsistent_digit_grouping.stderr @@ -5,7 +5,7 @@ error: digits grouped inconsistently by underscores | ^^^^^^^^ | = note: `-D inconsistent-digit-grouping` implied by `-D warnings` - = help: consider making each group three or four digits + = help: consider: 123_456 error: digits grouped inconsistently by underscores --> inconsistent_digit_grouping.rs:7:26 @@ -13,7 +13,7 @@ error: digits grouped inconsistently by underscores 7 | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32); | ^^^^^^^^^^ | - = help: consider making each group three or four digits + = help: consider: 12_345_678 error: digits grouped inconsistently by underscores --> inconsistent_digit_grouping.rs:7:38 @@ -21,7 +21,7 @@ error: digits grouped inconsistently by underscores 7 | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32); | ^^^^^^^^ | - = help: consider making each group three or four digits + = help: consider: 1_234_567 error: digits grouped inconsistently by underscores --> inconsistent_digit_grouping.rs:7:48 @@ -29,7 +29,7 @@ error: digits grouped inconsistently by underscores 7 | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32); | ^^^^^^^^^^^^^^ | - = help: consider making each group three or four digits + = help: consider: 1_234.567_8_f32 error: digits grouped inconsistently by underscores --> inconsistent_digit_grouping.rs:7:64 @@ -37,7 +37,7 @@ error: digits grouped inconsistently by underscores 7 | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32); | ^^^^^^^^^^^^^^ | - = help: consider making each group three or four digits + = help: consider: 1.234_567_8_f32 error: aborting due to 5 previous errors diff --git a/clippy_tests/examples/large_digit_groups.stderr b/clippy_tests/examples/large_digit_groups.stderr index 75d6461a547..408bff8b3cd 100644 --- a/clippy_tests/examples/large_digit_groups.stderr +++ b/clippy_tests/examples/large_digit_groups.stderr @@ -5,7 +5,7 @@ error: digit groups should be smaller | ^^^^^^^^^^^^^ | = note: `-D large-digit-groups` implied by `-D warnings` - = help: consider using groups of three or four digits + = help: consider: 0b11_0110_i64 error: digit groups should be smaller --> large_digit_groups.rs:7:31 @@ -13,7 +13,7 @@ error: digit groups should be smaller 7 | let bad = (0b1_10110_i64, 0x1_23456_78901_usize, 1_23456_f32, 1_23456.12_f32, 1_23456.12345_f32, 1_23456.12345_6_f32); | ^^^^^^^^^^^^^^^^^^^^^ | - = help: consider using groups of three or four digits + = help: consider: 0x123_4567_8901_usize error: digit groups should be smaller --> large_digit_groups.rs:7:54 @@ -21,7 +21,7 @@ error: digit groups should be smaller 7 | let bad = (0b1_10110_i64, 0x1_23456_78901_usize, 1_23456_f32, 1_23456.12_f32, 1_23456.12345_f32, 1_23456.12345_6_f32); | ^^^^^^^^^^^ | - = help: consider using groups of three or four digits + = help: consider: 123_456_f32 error: digit groups should be smaller --> large_digit_groups.rs:7:67 @@ -29,7 +29,7 @@ error: digit groups should be smaller 7 | let bad = (0b1_10110_i64, 0x1_23456_78901_usize, 1_23456_f32, 1_23456.12_f32, 1_23456.12345_f32, 1_23456.12345_6_f32); | ^^^^^^^^^^^^^^ | - = help: consider using groups of three or four digits + = help: consider: 123_456.12_f32 error: digit groups should be smaller --> large_digit_groups.rs:7:83 @@ -37,7 +37,7 @@ error: digit groups should be smaller 7 | let bad = (0b1_10110_i64, 0x1_23456_78901_usize, 1_23456_f32, 1_23456.12_f32, 1_23456.12345_f32, 1_23456.12345_6_f32); | ^^^^^^^^^^^^^^^^^ | - = help: consider using groups of three or four digits + = help: consider: 123_456.123_45_f32 error: digit groups should be smaller --> large_digit_groups.rs:7:102 @@ -45,7 +45,7 @@ error: digit groups should be smaller 7 | let bad = (0b1_10110_i64, 0x1_23456_78901_usize, 1_23456_f32, 1_23456.12_f32, 1_23456.12345_f32, 1_23456.12345_6_f32); | ^^^^^^^^^^^^^^^^^^^ | - = help: consider using groups of three or four digits + = help: consider: 123_456.123_456_f32 error: aborting due to 6 previous errors diff --git a/clippy_tests/examples/literals.stderr b/clippy_tests/examples/literals.stderr index 4eabb03fe5a..db67e3f190c 100644 --- a/clippy_tests/examples/literals.stderr +++ b/clippy_tests/examples/literals.stderr @@ -35,8 +35,8 @@ error: this is a decimal constant = note: `-D zero-prefixed-literal` implied by `-D warnings` help: if you mean to use a decimal constant, remove the `0` to remove confusion | -17 | let fail_multi_zero = 123usize; - | ^^^^^^^^ +17 | let fail_multi_zero = _123usize; + | ^^^^^^^^^ help: if you mean to use an octal constant, use `0o` | 17 | let fail_multi_zero = 0o_123usize; diff --git a/clippy_tests/examples/unreadable_literal.stderr b/clippy_tests/examples/unreadable_literal.stderr index a7d97ec4b0f..e4c110915d0 100644 --- a/clippy_tests/examples/unreadable_literal.stderr +++ b/clippy_tests/examples/unreadable_literal.stderr @@ -5,7 +5,7 @@ error: long literal lacking separators | ^^^^^^^^^^^ | = note: `-D unreadable-literal` implied by `-D warnings` - = help: consider using underscores to make literal more readable + = help: consider: 0b1_0110_i64 error: long literal lacking separators --> unreadable_literal.rs:7:29 @@ -13,7 +13,7 @@ error: long literal lacking separators 7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32); | ^^^^^^^^^^^^^^^^^^^ | - = help: consider using underscores to make literal more readable + = help: consider: 0x123_4567_8901_usize error: long literal lacking separators --> unreadable_literal.rs:7:50 @@ -21,7 +21,7 @@ error: long literal lacking separators 7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32); | ^^^^^^^^^ | - = help: consider using underscores to make literal more readable + = help: consider: 12_345_f32 error: long literal lacking separators --> unreadable_literal.rs:7:61 @@ -29,7 +29,7 @@ error: long literal lacking separators 7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32); | ^^^^^^^^^^^ | - = help: consider using underscores to make literal more readable + = help: consider: 1.234_56_f32 error: aborting due to 4 previous errors