|
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 |
| - --> $DIR/option_option.rs:1:13 |
| 2 | + --> $DIR/option_option.rs:3:13 |
3 | 3 | |
|
4 | 4 | LL | fn input(_: Option<Option<u8>>) {}
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 |
| - = note: `-D clippy::option-option` implied by `-D warnings` |
| 7 | +note: the lint level is defined here |
| 8 | + --> $DIR/option_option.rs:1:9 |
| 9 | + | |
| 10 | +LL | #![deny(clippy::option_option)] |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^ |
8 | 12 |
|
9 | 13 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
|
10 |
| - --> $DIR/option_option.rs:3:16 |
| 14 | + --> $DIR/option_option.rs:5:16 |
11 | 15 | |
|
12 | 16 | LL | fn output() -> Option<Option<u8>> {
|
13 | 17 | | ^^^^^^^^^^^^^^^^^^
|
14 | 18 |
|
15 | 19 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
|
16 |
| - --> $DIR/option_option.rs:7:27 |
| 20 | + --> $DIR/option_option.rs:9:27 |
17 | 21 | |
|
18 | 22 | LL | fn output_nested() -> Vec<Option<Option<u8>>> {
|
19 | 23 | | ^^^^^^^^^^^^^^^^^^
|
20 | 24 |
|
21 | 25 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
|
22 |
| - --> $DIR/option_option.rs:12:30 |
| 26 | + --> $DIR/option_option.rs:14:30 |
23 | 27 | |
|
24 | 28 | LL | fn output_nested_nested() -> Option<Option<Option<u8>>> {
|
25 | 29 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
26 | 30 |
|
27 | 31 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
|
28 |
| - --> $DIR/option_option.rs:17:8 |
| 32 | + --> $DIR/option_option.rs:19:8 |
29 | 33 | |
|
30 | 34 | LL | x: Option<Option<u8>>,
|
31 | 35 | | ^^^^^^^^^^^^^^^^^^
|
32 | 36 |
|
33 | 37 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
|
34 |
| - --> $DIR/option_option.rs:21:23 |
| 38 | + --> $DIR/option_option.rs:23:23 |
35 | 39 | |
|
36 | 40 | LL | fn struct_fn() -> Option<Option<u8>> {
|
37 | 41 | | ^^^^^^^^^^^^^^^^^^
|
38 | 42 |
|
39 | 43 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
|
40 |
| - --> $DIR/option_option.rs:27:22 |
| 44 | + --> $DIR/option_option.rs:29:22 |
41 | 45 | |
|
42 | 46 | LL | fn trait_fn() -> Option<Option<u8>>;
|
43 | 47 | | ^^^^^^^^^^^^^^^^^^
|
44 | 48 |
|
45 | 49 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
|
46 |
| - --> $DIR/option_option.rs:31:11 |
| 50 | + --> $DIR/option_option.rs:33:11 |
47 | 51 | |
|
48 | 52 | LL | Tuple(Option<Option<u8>>),
|
49 | 53 | | ^^^^^^^^^^^^^^^^^^
|
50 | 54 |
|
51 | 55 | error: consider using `Option<T>` instead of `Option<Option<T>>` or a custom enum if you need to distinguish all 3 cases
|
52 |
| - --> $DIR/option_option.rs:32:17 |
| 56 | + --> $DIR/option_option.rs:34:17 |
53 | 57 | |
|
54 | 58 | LL | Struct { x: Option<Option<u8>> },
|
55 | 59 | | ^^^^^^^^^^^^^^^^^^
|
|
0 commit comments