Skip to content

Commit

Permalink
Remove one test to fit the 275 line limit of .stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
mgr-inz-rafal committed Dec 22, 2019
1 parent 156e56f commit dcb5fbd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
1 change: 0 additions & 1 deletion tests/ui/modulo_arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ fn main() {
1i16 % -2i16;
-1i32 % 2i32;
1i32 % -2i32;
-1i64 % 2i64;
1i64 % -2i64;
-1i128 % 2i128;
1i128 % -2i128;
Expand Down
43 changes: 17 additions & 26 deletions tests/ui/modulo_arithmetic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,8 @@ LL | 1i32 % -2i32;
= note: double check for expected result especially when interoperating with different languages
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on constants with different signs: `-1 % 2`
--> $DIR/modulo_arithmetic.rs:29:5
|
LL | -1i64 % 2i64;
| ^^^^^^^^^^^^
|
= note: double check for expected result especially when interoperating with different languages
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on constants with different signs: `1 % -2`
--> $DIR/modulo_arithmetic.rs:30:5
--> $DIR/modulo_arithmetic.rs:29:5
|
LL | 1i64 % -2i64;
| ^^^^^^^^^^^^
Expand All @@ -149,7 +140,7 @@ LL | 1i64 % -2i64;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on constants with different signs: `-1 % 2`
--> $DIR/modulo_arithmetic.rs:31:5
--> $DIR/modulo_arithmetic.rs:30:5
|
LL | -1i128 % 2i128;
| ^^^^^^^^^^^^^^
Expand All @@ -158,7 +149,7 @@ LL | -1i128 % 2i128;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on constants with different signs: `1 % -2`
--> $DIR/modulo_arithmetic.rs:32:5
--> $DIR/modulo_arithmetic.rs:31:5
|
LL | 1i128 % -2i128;
| ^^^^^^^^^^^^^^
Expand All @@ -167,7 +158,7 @@ LL | 1i128 % -2i128;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on constants with different signs: `-1 % 2`
--> $DIR/modulo_arithmetic.rs:33:5
--> $DIR/modulo_arithmetic.rs:32:5
|
LL | -1isize % 2isize;
| ^^^^^^^^^^^^^^^^
Expand All @@ -176,7 +167,7 @@ LL | -1isize % 2isize;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on constants with different signs: `1 % -2`
--> $DIR/modulo_arithmetic.rs:34:5
--> $DIR/modulo_arithmetic.rs:33:5
|
LL | 1isize % -2isize;
| ^^^^^^^^^^^^^^^^
Expand All @@ -185,7 +176,7 @@ LL | 1isize % -2isize;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:39:5
--> $DIR/modulo_arithmetic.rs:38:5
|
LL | a % b;
| ^^^^^
Expand All @@ -194,7 +185,7 @@ LL | a % b;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:40:5
--> $DIR/modulo_arithmetic.rs:39:5
|
LL | b % a;
| ^^^^^
Expand All @@ -203,7 +194,7 @@ LL | b % a;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:41:5
--> $DIR/modulo_arithmetic.rs:40:5
|
LL | b %= a;
| ^^^^^^
Expand All @@ -212,55 +203,55 @@ LL | b %= a;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:45:5
--> $DIR/modulo_arithmetic.rs:44:5
|
LL | a_f32 % b_f32;
| ^^^^^^^^^^^^^
|
= note: double check for expected result especially when interoperating with different languages

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:46:5
--> $DIR/modulo_arithmetic.rs:45:5
|
LL | b_f32 % a_f32;
| ^^^^^^^^^^^^^
|
= note: double check for expected result especially when interoperating with different languages

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:47:5
--> $DIR/modulo_arithmetic.rs:46:5
|
LL | b_f32 %= a_f32;
| ^^^^^^^^^^^^^^
|
= note: double check for expected result especially when interoperating with different languages

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:51:5
--> $DIR/modulo_arithmetic.rs:50:5
|
LL | a_f64 % b_f64;
| ^^^^^^^^^^^^^
|
= note: double check for expected result especially when interoperating with different languages

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:52:5
--> $DIR/modulo_arithmetic.rs:51:5
|
LL | b_f64 % a_f64;
| ^^^^^^^^^^^^^
|
= note: double check for expected result especially when interoperating with different languages

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:53:5
--> $DIR/modulo_arithmetic.rs:52:5
|
LL | b_f64 %= a_f64;
| ^^^^^^^^^^^^^^
|
= note: double check for expected result especially when interoperating with different languages

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:57:5
--> $DIR/modulo_arithmetic.rs:56:5
|
LL | a % b;
| ^^^^^
Expand All @@ -269,13 +260,13 @@ LL | a % b;
= note: or consider using `rem_euclid` or similar function

error: you are using modulo operator on types that might have different signs
--> $DIR/modulo_arithmetic.rs:58:5
--> $DIR/modulo_arithmetic.rs:57:5
|
LL | b %= a;
| ^^^^^^
|
= note: double check for expected result especially when interoperating with different languages
= note: or consider using `rem_euclid` or similar function

error: aborting due to 32 previous errors
error: aborting due to 31 previous errors

0 comments on commit dcb5fbd

Please sign in to comment.