rust/tests/ui/manual_rem_euclid.stderr

67 lines
2.3 KiB
Plaintext
Raw Normal View History

2022-06-21 13:13:15 -05:00
error: manual `rem_euclid` implementation
--> $DIR/manual_rem_euclid.rs:14: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
--> $DIR/manual_rem_euclid.rs:15: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
--> $DIR/manual_rem_euclid.rs:16: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
--> $DIR/manual_rem_euclid.rs:17: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
--> $DIR/manual_rem_euclid.rs:18: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
--> $DIR/manual_rem_euclid.rs:38:22
|
LL | let _: i32 = ((value % 4) + 4) % 4;
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using: `value.rem_euclid(4)`
|
= note: this error originates in the macro `__inline_mac_fn_main` (in Nightly builds, run with -Z macro-backtrace for more info)
error: manual `rem_euclid` implementation
2023-03-08 10:31:00 -06:00
--> $DIR/manual_rem_euclid.rs:50: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
2023-03-08 10:31:00 -06:00
--> $DIR/manual_rem_euclid.rs:55:5
2022-06-22 13:17:52 -05:00
|
LL | ((num % 4) + 4) % 4
| ^^^^^^^^^^^^^^^^^^^ help: consider using: `num.rem_euclid(4)`
error: manual `rem_euclid` implementation
2023-03-08 10:31:00 -06:00
--> $DIR/manual_rem_euclid.rs:67:18
|
LL | let _: i32 = ((x % 4) + 4) % 4;
| ^^^^^^^^^^^^^^^^^ help: consider using: `x.rem_euclid(4)`
error: manual `rem_euclid` implementation
2023-03-08 10:31:00 -06:00
--> $DIR/manual_rem_euclid.rs:80:18
|
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