2022-06-30 03:50:09 -05:00
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:13:18
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = ((value % 4) + 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-rem-euclid` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::manual_rem_euclid)]`
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:14:18
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = (4 + (value % 4)) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:15:18
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = (value % 4 + 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:16:18
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = (4 + value % 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:17:22
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = 1 + (4 + value % 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:37:22
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = ((value % 4) + 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
2023-03-24 08:04:35 -05:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:49:5
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
|
LL | ((num % 4) + 4) % 4
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `num.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:54:5
|
2022-06-30 03:50:09 -05:00
|
|
|
|
|
|
|
|
LL | ((num % 4) + 4) % 4
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `num.rem_euclid(4)`
|
|
|
|
|
2022-10-23 08:18:45 -05:00
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:66:18
|
2022-10-23 08:18:45 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = ((x % 4) + 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: consider using: `x.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/manual_rem_euclid.rs:79:18
|
2022-10-23 08:18:45 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = ((x % 4) + 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: consider using: `x.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2022-06-30 03:50:09 -05:00
|
|
|
|