about summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/conditional_array_execution.stderr
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-02-13 16:27:59 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2022-07-01 17:39:19 +0200
commit42e4eee8931479a02c11c88ddaddb3a494e136c6 (patch)
treea1b3bade4e24fbe6bbcff84376aed94bc6505257 /src/test/ui/consts/const-eval/conditional_array_execution.stderr
parentca1e68b3229e710c3948a361ee770d846a88e6da (diff)
downloadrust-42e4eee8931479a02c11c88ddaddb3a494e136c6.tar.gz
rust-42e4eee8931479a02c11c88ddaddb3a494e136c6.zip
Shorten def_span for more items.
Diffstat (limited to 'src/test/ui/consts/const-eval/conditional_array_execution.stderr')
-rw-r--r--src/test/ui/consts/const-eval/conditional_array_execution.stderr8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/ui/consts/const-eval/conditional_array_execution.stderr b/src/test/ui/consts/const-eval/conditional_array_execution.stderr
index f88bf445426..2312e2a45db 100644
--- a/src/test/ui/consts/const-eval/conditional_array_execution.stderr
+++ b/src/test/ui/consts/const-eval/conditional_array_execution.stderr
@@ -2,9 +2,7 @@ warning: any use of this value will cause an error
   --> $DIR/conditional_array_execution.rs:7:19
    |
 LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
-   | ------------------^^^^^---------------------------
-   |                   |
-   |                   attempt to compute `5_u32 - 6_u32`, which would overflow
+   | --------------    ^^^^^ attempt to compute `5_u32 - 6_u32`, which would overflow
    |
 note: the lint level is defined here
   --> $DIR/conditional_array_execution.rs:3:9
@@ -38,9 +36,7 @@ warning: any use of this value will cause an error
   --> $DIR/conditional_array_execution.rs:7:19
    |
 LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
-   | ------------------^^^^^---------------------------
-   |                   |
-   |                   attempt to compute `5_u32 - 6_u32`, which would overflow
+   | --------------    ^^^^^ attempt to compute `5_u32 - 6_u32`, which would overflow
    |
 note: the lint level is defined here
   --> $DIR/conditional_array_execution.rs:3:9