|
1 |
| -error[E0433]: failed to resolve: could not find `inner` in the crate root |
2 |
| - --> $DIR/pub_underscore_fields.rs:47:27 |
3 |
| - | |
4 |
| -LL | pub(in super::inner) e: bool, |
5 |
| - | ^^^^^ could not find `inner` in the crate root |
6 |
| - |
7 |
| -error[E0433]: failed to resolve: could not find `inner` in the crate root |
8 |
| - --> $DIR/pub_underscore_fields.rs:48:27 |
9 |
| - | |
10 |
| -LL | pub(in super::inner) _f: Option<()>, |
11 |
| - | ^^^^^ could not find `inner` in the crate root |
12 |
| - |
13 | 1 | error: field marked as public but also inferred as unused because it's prefixed with `_`
|
14 |
| - --> $DIR/pub_underscore_fields.rs:6:9 |
| 2 | + --> $DIR/pub_underscore_fields.rs:7:9 |
15 | 3 | |
|
16 |
| -LL | pub _a: usize, |
17 |
| - | ^^^^^^ |
| 4 | +LL | pub(super) _b: u8, |
| 5 | + | ^^^^^^^^^^^^^ |
18 | 6 | |
|
19 | 7 | = help: consider removing the underscore, or making the field private
|
20 | 8 | = note: `-D clippy::pub-underscore-fields` implied by `-D warnings`
|
21 | 9 |
|
22 | 10 | error: field marked as public but also inferred as unused because it's prefixed with `_`
|
23 |
| - --> $DIR/pub_underscore_fields.rs:13:9 |
| 11 | + --> $DIR/pub_underscore_fields.rs:14:13 |
24 | 12 | |
|
25 |
| -LL | pub _c: i64, |
26 |
| - | ^^^^^^ |
| 13 | +LL | pub(in crate::inner) _f: Option<()>, |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
27 | 15 | |
|
28 | 16 | = help: consider removing the underscore, or making the field private
|
29 | 17 |
|
30 | 18 | error: field marked as public but also inferred as unused because it's prefixed with `_`
|
31 |
| - --> $DIR/pub_underscore_fields.rs:15:9 |
| 19 | + --> $DIR/pub_underscore_fields.rs:21:9 |
32 | 20 | |
|
33 |
| -LL | pub _e: Option<u8>, |
| 21 | +LL | pub _a: usize, |
34 | 22 | | ^^^^^^
|
35 | 23 | |
|
36 | 24 | = help: consider removing the underscore, or making the field private
|
37 | 25 |
|
38 | 26 | error: field marked as public but also inferred as unused because it's prefixed with `_`
|
39 | 27 | --> $DIR/pub_underscore_fields.rs:28:9
|
40 | 28 | |
|
41 |
| -LL | pub(crate) _b: Option<String>, |
42 |
| - | ^^^^^^^^^^^^^ |
| 29 | +LL | pub _c: i64, |
| 30 | + | ^^^^^^ |
43 | 31 | |
|
44 | 32 | = help: consider removing the underscore, or making the field private
|
45 | 33 |
|
46 | 34 | error: field marked as public but also inferred as unused because it's prefixed with `_`
|
47 |
| - --> $DIR/pub_underscore_fields.rs:40:13 |
| 35 | + --> $DIR/pub_underscore_fields.rs:30:9 |
48 | 36 | |
|
49 |
| -LL | pub(super) _b: u8, |
50 |
| - | ^^^^^^^^^^^^^ |
| 37 | +LL | pub _e: Option<u8>, |
| 38 | + | ^^^^^^ |
51 | 39 | |
|
52 | 40 | = help: consider removing the underscore, or making the field private
|
53 | 41 |
|
54 | 42 | error: field marked as public but also inferred as unused because it's prefixed with `_`
|
55 |
| - --> $DIR/pub_underscore_fields.rs:48:13 |
| 43 | + --> $DIR/pub_underscore_fields.rs:43:9 |
56 | 44 | |
|
57 |
| -LL | pub(in super::inner) _f: Option<()>, |
58 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 45 | +LL | pub(crate) _b: Option<String>, |
| 46 | + | ^^^^^^^^^^^^^ |
59 | 47 | |
|
60 | 48 | = help: consider removing the underscore, or making the field private
|
61 | 49 |
|
62 |
| -error: aborting due to 8 previous errors |
| 50 | +error: aborting due to 6 previous errors |
63 | 51 |
|
64 |
| -For more information about this error, try `rustc --explain E0433`. |
0 commit comments