|
1 | 1 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
2 | | - --> tests/ui/option_option.rs:6:10 |
| 2 | + --> tests/ui/option_option.rs:4:10 |
3 | 3 | | |
4 | 4 | LL | const C: Option<Option<i32>> = None; |
5 | 5 | | ^^^^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | note: the lint level is defined here |
8 | | - --> tests/ui/option_option.rs:3:9 |
| 8 | + --> tests/ui/option_option.rs:1:9 |
9 | 9 | | |
10 | 10 | LL | #![deny(clippy::option_option)] |
11 | 11 | | ^^^^^^^^^^^^^^^^^^^^^ |
12 | 12 |
|
13 | 13 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
14 | | - --> tests/ui/option_option.rs:8:11 |
| 14 | + --> tests/ui/option_option.rs:6:11 |
15 | 15 | | |
16 | 16 | LL | static S: Option<Option<i32>> = None; |
17 | 17 | | ^^^^^^^^^^^^^^^^^^^ |
18 | 18 |
|
19 | 19 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
20 | | - --> tests/ui/option_option.rs:11:13 |
| 20 | + --> tests/ui/option_option.rs:9:13 |
21 | 21 | | |
22 | 22 | LL | fn input(_: Option<Option<u8>>) {} |
23 | 23 | | ^^^^^^^^^^^^^^^^^^ |
24 | 24 |
|
25 | 25 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
26 | | - --> tests/ui/option_option.rs:14:16 |
| 26 | + --> tests/ui/option_option.rs:12:16 |
27 | 27 | | |
28 | 28 | LL | fn output() -> Option<Option<u8>> { |
29 | 29 | | ^^^^^^^^^^^^^^^^^^ |
30 | 30 |
|
31 | 31 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
32 | | - --> tests/ui/option_option.rs:19:27 |
| 32 | + --> tests/ui/option_option.rs:17:27 |
33 | 33 | | |
34 | 34 | LL | fn output_nested() -> Vec<Option<Option<u8>>> { |
35 | 35 | | ^^^^^^^^^^^^^^^^^^ |
36 | 36 |
|
37 | 37 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
38 | | - --> tests/ui/option_option.rs:25:30 |
| 38 | + --> tests/ui/option_option.rs:23:30 |
39 | 39 | | |
40 | 40 | LL | fn output_nested_nested() -> Option<Option<Option<u8>>> { |
41 | 41 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
42 | 42 |
|
43 | 43 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
44 | | - --> tests/ui/option_option.rs:31:8 |
| 44 | + --> tests/ui/option_option.rs:29:8 |
45 | 45 | | |
46 | 46 | LL | x: Option<Option<u8>>, |
47 | 47 | | ^^^^^^^^^^^^^^^^^^ |
48 | 48 |
|
49 | 49 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
50 | | - --> tests/ui/option_option.rs:36:23 |
| 50 | + --> tests/ui/option_option.rs:34:23 |
51 | 51 | | |
52 | 52 | LL | fn struct_fn() -> Option<Option<u8>> { |
53 | 53 | | ^^^^^^^^^^^^^^^^^^ |
54 | 54 |
|
55 | 55 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
56 | | - --> tests/ui/option_option.rs:43:22 |
| 56 | + --> tests/ui/option_option.rs:41:22 |
57 | 57 | | |
58 | 58 | LL | fn trait_fn() -> Option<Option<u8>>; |
59 | 59 | | ^^^^^^^^^^^^^^^^^^ |
60 | 60 |
|
61 | 61 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
62 | | - --> tests/ui/option_option.rs:48:11 |
| 62 | + --> tests/ui/option_option.rs:46:11 |
63 | 63 | | |
64 | 64 | LL | Tuple(Option<Option<u8>>), |
65 | 65 | | ^^^^^^^^^^^^^^^^^^ |
66 | 66 |
|
67 | 67 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
68 | | - --> tests/ui/option_option.rs:50:17 |
| 68 | + --> tests/ui/option_option.rs:48:17 |
69 | 69 | | |
70 | 70 | LL | Struct { x: Option<Option<u8>> }, |
71 | 71 | | ^^^^^^^^^^^^^^^^^^ |
72 | 72 |
|
73 | 73 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases |
74 | | - --> tests/ui/option_option.rs:92:14 |
| 74 | + --> tests/ui/option_option.rs:90:14 |
75 | 75 | | |
76 | 76 | LL | foo: Option<Option<Cow<'a, str>>>, |
77 | 77 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
0 commit comments