2023-06-16 14:39:02 -05:00
|
|
|
error: this OR pattern can be rewritten using a range
|
2023-06-20 03:51:39 -05:00
|
|
|
--> $DIR/manual_range_patterns.rs:10:25
|
2023-06-16 14:39:02 -05:00
|
|
|
|
|
|
|
|
LL | let _ = matches!(f, 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=10`
|
|
|
|
|
|
2023-06-20 03:51:39 -05:00
|
|
|
= note: `-D clippy::manual-range-patterns` implied by `-D warnings`
|
2023-06-16 14:39:02 -05:00
|
|
|
|
|
|
|
error: this OR pattern can be rewritten using a range
|
2023-06-20 03:51:39 -05:00
|
|
|
--> $DIR/manual_range_patterns.rs:11:25
|
2023-06-16 14:39:02 -05:00
|
|
|
|
|
|
|
|
LL | let _ = matches!(f, 4 | 2 | 3 | 1 | 5 | 6 | 9 | 7 | 8 | 10);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=10`
|
|
|
|
|
|
|
|
error: this OR pattern can be rewritten using a range
|
2023-06-20 03:51:39 -05:00
|
|
|
--> $DIR/manual_range_patterns.rs:20:25
|
2023-06-16 14:39:02 -05:00
|
|
|
|
|
|
|
|
LL | let _ = matches!(f, (1..=10) | (2..=13) | (14..=48324728) | 48324729);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=48324729`
|
|
|
|
|
|
|
|
error: this OR pattern can be rewritten using a range
|
2023-06-20 03:51:39 -05:00
|
|
|
--> $DIR/manual_range_patterns.rs:21:25
|
2023-06-16 14:39:02 -05:00
|
|
|
|
|
|
|
|
LL | let _ = matches!(f, 0 | (1..=10) | 48324730 | (2..=13) | (14..=48324728) | 48324729);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0..=48324730`
|
|
|
|
|
|
|
|
error: this OR pattern can be rewritten using a range
|
2023-06-20 03:51:39 -05:00
|
|
|
--> $DIR/manual_range_patterns.rs:22:25
|
2023-06-16 14:39:02 -05:00
|
|
|
|
|
|
|
|
LL | let _ = matches!(f, 0..=1 | 0..=2 | 0..=3);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `0..=3`
|
|
|
|
|
|
|
|
error: this OR pattern can be rewritten using a range
|
2023-06-20 03:51:39 -05:00
|
|
|
--> $DIR/manual_range_patterns.rs:25:9
|
2023-06-16 14:39:02 -05:00
|
|
|
|
|
|
|
|
LL | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 => true,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=10`
|
|
|
|
|
|
|
|
error: this OR pattern can be rewritten using a range
|
2023-06-20 03:51:39 -05:00
|
|
|
--> $DIR/manual_range_patterns.rs:31:26
|
2023-06-16 14:39:02 -05:00
|
|
|
|
|
|
|
|
LL | matches!($e, 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10)
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=10`
|
|
|
|
...
|
|
|
|
LL | mac!(f);
|
|
|
|
| ------- in this macro invocation
|
|
|
|
|
|
|
|
|
= note: this error originates in the macro `mac` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|