|
1 | 1 | error: this OR pattern can be rewritten using a range |
2 | | - --> $DIR/manual_range_pattern.rs:10:25 |
| 2 | + --> $DIR/manual_range_patterns.rs:10:25 |
3 | 3 | | |
4 | 4 | LL | let _ = matches!(f, 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10); |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=10` |
6 | 6 | | |
7 | | - = note: `-D clippy::manual-range-pattern` implied by `-D warnings` |
| 7 | + = note: `-D clippy::manual-range-patterns` implied by `-D warnings` |
8 | 8 |
|
9 | 9 | error: this OR pattern can be rewritten using a range |
10 | | - --> $DIR/manual_range_pattern.rs:11:25 |
| 10 | + --> $DIR/manual_range_patterns.rs:11:25 |
11 | 11 | | |
12 | 12 | LL | let _ = matches!(f, 4 | 2 | 3 | 1 | 5 | 6 | 9 | 7 | 8 | 10); |
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=10` |
14 | 14 |
|
15 | 15 | error: this OR pattern can be rewritten using a range |
16 | | - --> $DIR/manual_range_pattern.rs:20:25 |
| 16 | + --> $DIR/manual_range_patterns.rs:20:25 |
17 | 17 | | |
18 | 18 | LL | let _ = matches!(f, (1..=10) | (2..=13) | (14..=48324728) | 48324729); |
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=48324729` |
20 | 20 |
|
21 | 21 | error: this OR pattern can be rewritten using a range |
22 | | - --> $DIR/manual_range_pattern.rs:21:25 |
| 22 | + --> $DIR/manual_range_patterns.rs:21:25 |
23 | 23 | | |
24 | 24 | LL | let _ = matches!(f, 0 | (1..=10) | 48324730 | (2..=13) | (14..=48324728) | 48324729); |
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0..=48324730` |
26 | 26 |
|
27 | 27 | error: this OR pattern can be rewritten using a range |
28 | | - --> $DIR/manual_range_pattern.rs:22:25 |
| 28 | + --> $DIR/manual_range_patterns.rs:22:25 |
29 | 29 | | |
30 | 30 | LL | let _ = matches!(f, 0..=1 | 0..=2 | 0..=3); |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^ help: try: `0..=3` |
32 | 32 |
|
33 | 33 | error: this OR pattern can be rewritten using a range |
34 | | - --> $DIR/manual_range_pattern.rs:25:9 |
| 34 | + --> $DIR/manual_range_patterns.rs:25:9 |
35 | 35 | | |
36 | 36 | LL | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 => true, |
37 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=10` |
38 | 38 |
|
39 | 39 | error: this OR pattern can be rewritten using a range |
40 | | - --> $DIR/manual_range_pattern.rs:31:26 |
| 40 | + --> $DIR/manual_range_patterns.rs:31:26 |
41 | 41 | | |
42 | 42 | LL | matches!($e, 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) |
43 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `1..=10` |
|
0 commit comments