Skip to content

Commit ec2c615

Browse files
committed
Use translatable diagnostics in rustc_const_eval
1 parent 1a5db18 commit ec2c615

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/modulo_one.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ error: this operation will panic at runtime
22
--> $DIR/modulo_one.rs:11:5
33
|
44
LL | i32::MIN % (-1); // also caught by rustc
5-
| ^^^^^^^^^^^^^^^ attempt to compute the remainder of `i32::MIN % -1_i32`, which would overflow
5+
| ^^^^^^^^^^^^^^^ attempt to compute `i32::MIN % -1_i32`, which would overflow
66
|
77
= note: `#[deny(unconditional_panic)]` on by default
88

99
error: this operation will panic at runtime
1010
--> $DIR/modulo_one.rs:21:5
1111
|
1212
LL | INT_MIN % NEG_ONE; // also caught by rustc
13-
| ^^^^^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow
13+
| ^^^^^^^^^^^^^^^^^ attempt to compute `i64::MIN % -1_i64`, which would overflow
1414

1515
error: this operation will panic at runtime
1616
--> $DIR/modulo_one.rs:22:5
1717
|
1818
LL | INT_MIN % STATIC_NEG_ONE; // ONLY caught by rustc
19-
| ^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute the remainder of `i64::MIN % -1_i64`, which would overflow
19+
| ^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `i64::MIN % -1_i64`, which would overflow
2020

2121
error: any number modulo 1 will be 0
2222
--> $DIR/modulo_one.rs:8:5

0 commit comments

Comments
 (0)