Skip to content

Commit 5f46e5c

Browse files
committed
Update ui test output
1 parent cefcf05 commit 5f46e5c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/test/ui/const-eval/promoted_errors.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ warning: constant evaluation error
22
--> $DIR/promoted_errors.rs:14:20
33
|
44
LL | println!("{}", 0u32 - 1);
5-
| ^^^^^^^^ attempted to do overflowing math
5+
| ^^^^^^^^ attempt to subtract with overflow
66
|
77
= note: #[warn(const_err)] on by default
88

99
warning: constant evaluation error
1010
--> $DIR/promoted_errors.rs:14:20
1111
|
1212
LL | println!("{}", 0u32 - 1);
13-
| ^^^^^^^^ attempted to do overflowing math
13+
| ^^^^^^^^ attempt to subtract with overflow
1414

1515
warning: constant evaluation error
1616
--> $DIR/promoted_errors.rs:17:14
1717
|
1818
LL | let _x = 0u32 - 1;
19-
| ^^^^^^^^ attempted to do overflowing math
19+
| ^^^^^^^^ attempt to subtract with overflow
2020

2121
warning: attempt to divide by zero
2222
--> $DIR/promoted_errors.rs:19:20
@@ -28,7 +28,7 @@ warning: constant evaluation error
2828
--> $DIR/promoted_errors.rs:19:20
2929
|
3030
LL | println!("{}", 1/(1-1));
31-
| ^^^^^^^ attempted to do overflowing math
31+
| ^^^^^^^ attempt to divide with overflow
3232

3333
warning: attempt to divide by zero
3434
--> $DIR/promoted_errors.rs:22:14
@@ -40,11 +40,11 @@ warning: constant evaluation error
4040
--> $DIR/promoted_errors.rs:22:14
4141
|
4242
LL | let _x = 1/(1-1);
43-
| ^^^^^^^ attempted to do overflowing math
43+
| ^^^^^^^ attempt to divide with overflow
4444

4545
warning: constant evaluation error
4646
--> $DIR/promoted_errors.rs:25:20
4747
|
4848
LL | println!("{}", 1/(false as u32));
49-
| ^^^^^^^^^^^^^^^^ attempted to do overflowing math
49+
| ^^^^^^^^^^^^^^^^ attempt to divide with overflow
5050

src/test/ui/error-codes/E0080.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ warning: constant evaluation error
2424
--> $DIR/E0080.rs:14:9
2525
|
2626
LL | Y = (1 / 0) //~ ERROR E0080
27-
| ^^^^^^^ attempted to do overflowing math
27+
| ^^^^^^^ attempt to divide with overflow
2828

2929
error[E0080]: constant evaluation error
3030
--> $DIR/E0080.rs:14:9

0 commit comments

Comments
 (0)