2022-06-21 13:13:15 -05:00
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:19:18
|
2022-06-21 13:13:15 -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`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:20:18
|
2022-06-21 13:13:15 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = (4 + (value % 4)) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:21:18
|
2022-06-21 13:13:15 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = (value % 4 + 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:22:18
|
2022-06-21 13:13:15 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = (4 + value % 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:23:22
|
2022-06-21 13:13:15 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = 1 + (4 + value % 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
|
2022-06-22 13:08:47 -05:00
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:12:22
|
2022-06-23 15:34:52 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = ((value % 4) + 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
|
|
|
...
|
|
|
|
LL | internal_rem_euclid!();
|
|
|
|
| ---------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `internal_rem_euclid` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:49:5
|
2022-06-22 13:08:47 -05:00
|
|
|
|
|
|
|
|
LL | ((num % 4) + 4) % 4
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `num.rem_euclid(4)`
|
|
|
|
|
2022-06-22 13:17:52 -05:00
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:54:5
|
2022-06-22 13:17:52 -05:00
|
|
|
|
|
|
|
|
LL | ((num % 4) + 4) % 4
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `num.rem_euclid(4)`
|
|
|
|
|
2022-10-21 16:35:39 -05:00
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:66:18
|
2022-10-21 16:35:39 -05:00
|
|
|
|
|
|
|
|
LL | let _: i32 = ((x % 4) + 4) % 4;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ help: consider using: `x.rem_euclid(4)`
|
|
|
|
|
|
|
|
error: manual `rem_euclid` implementation
|
2022-11-19 06:50:02 -06:00
|
|
|
--> $DIR/manual_rem_euclid.rs:79:18
|
2022-10-21 16:35:39 -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-21 13:13:15 -05:00
|
|
|
|