From ed011c45c4fd9177934e14ed48e1bac0a10ee891 Mon Sep 17 00:00:00 2001 From: Terry Raimondo Date: Mon, 28 May 2018 14:43:44 +0200 Subject: [PATCH] Update other tests --- tests/ui/large_digit_groups.stderr | 2 +- tests/ui/literals.stderr | 28 +++++++++++++++++++++------- tests/ui/unreadable_literal.stderr | 2 +- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/tests/ui/large_digit_groups.stderr b/tests/ui/large_digit_groups.stderr index 284c5ecf339..f2e6a62d13c 100644 --- a/tests/ui/large_digit_groups.stderr +++ b/tests/ui/large_digit_groups.stderr @@ -10,7 +10,7 @@ error: digit groups should be smaller --> $DIR/large_digit_groups.rs:7:31 | 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: `0x123_4567_8901_usize` + | ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize` error: digit groups should be smaller --> $DIR/large_digit_groups.rs:7:54 diff --git a/tests/ui/literals.stderr b/tests/ui/literals.stderr index 703adbfd280..6f6ea75df10 100644 --- a/tests/ui/literals.stderr +++ b/tests/ui/literals.stderr @@ -87,24 +87,38 @@ help: if you mean to use an octal constant, use `0o` | ^^^^^ error: long literal lacking separators - --> $DIR/literals.rs:35:17 + --> $DIR/literals.rs:39:17 | -35 | let fail9 = 0xabcdef; +39 | let fail9 = 0xabcdef; | ^^^^^^^^ help: consider: `0x00ab_cdef` | = note: `-D unreadable-literal` implied by `-D warnings` error: long literal lacking separators - --> $DIR/literals.rs:36:18 + --> $DIR/literals.rs:40:18 | -36 | let fail10 = 0xBAFEBAFE; +40 | let fail10 = 0xBAFEBAFE; | ^^^^^^^^^^ help: consider: `0xBAFE_BAFE` error: long literal lacking separators - --> $DIR/literals.rs:37:18 + --> $DIR/literals.rs:41:18 | -37 | let fail11 = 0xabcdeff; +41 | let fail11 = 0xabcdeff; | ^^^^^^^^^ help: consider: `0x0abc_deff` -error: aborting due to 14 previous errors +error: long literal lacking separators + --> $DIR/literals.rs:42:18 + | +42 | let fail12 = 0xabcabcabcabcabcabc; + | ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc` + +error: digit groups should be smaller + --> $DIR/literals.rs:43:18 + | +43 | let fail13 = 0x1_23456_78901_usize; + | ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize` + | + = note: `-D large-digit-groups` implied by `-D warnings` + +error: aborting due to 16 previous errors diff --git a/tests/ui/unreadable_literal.stderr b/tests/ui/unreadable_literal.stderr index 4b78e2e121b..cffcad1eef7 100644 --- a/tests/ui/unreadable_literal.stderr +++ b/tests/ui/unreadable_literal.stderr @@ -10,7 +10,7 @@ error: long literal lacking separators --> $DIR/unreadable_literal.rs:7:30 | 7 | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32); - | ^^^^^^^^^^^^^^^^^^^ help: consider: `0x123_4567_8901_usize` + | ^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize` error: long literal lacking separators --> $DIR/unreadable_literal.rs:7:51