-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,51 @@ | ||
error[E0433]: failed to resolve: could not find `inner` in the crate root | ||
--> $DIR/pub_underscore_fields.rs:47:27 | ||
| | ||
LL | pub(in super::inner) e: bool, | ||
| ^^^^^ could not find `inner` in the crate root | ||
|
||
error[E0433]: failed to resolve: could not find `inner` in the crate root | ||
--> $DIR/pub_underscore_fields.rs:48:27 | ||
| | ||
LL | pub(in super::inner) _f: Option<()>, | ||
| ^^^^^ could not find `inner` in the crate root | ||
|
||
error: field marked as public but also inferred as unused because it's prefixed with `_` | ||
--> $DIR/pub_underscore_fields.rs:6:9 | ||
--> $DIR/pub_underscore_fields.rs:7:9 | ||
| | ||
LL | pub _a: usize, | ||
| ^^^^^^ | ||
LL | pub(super) _b: u8, | ||
| ^^^^^^^^^^^^^ | ||
| | ||
= help: consider removing the underscore, or making the field private | ||
= note: `-D clippy::pub-underscore-fields` implied by `-D warnings` | ||
|
||
error: field marked as public but also inferred as unused because it's prefixed with `_` | ||
--> $DIR/pub_underscore_fields.rs:13:9 | ||
--> $DIR/pub_underscore_fields.rs:14:13 | ||
| | ||
LL | pub _c: i64, | ||
| ^^^^^^ | ||
LL | pub(in crate::inner) _f: Option<()>, | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: consider removing the underscore, or making the field private | ||
|
||
error: field marked as public but also inferred as unused because it's prefixed with `_` | ||
--> $DIR/pub_underscore_fields.rs:15:9 | ||
--> $DIR/pub_underscore_fields.rs:21:9 | ||
| | ||
LL | pub _e: Option<u8>, | ||
LL | pub _a: usize, | ||
| ^^^^^^ | ||
| | ||
= help: consider removing the underscore, or making the field private | ||
|
||
error: field marked as public but also inferred as unused because it's prefixed with `_` | ||
--> $DIR/pub_underscore_fields.rs:28:9 | ||
| | ||
LL | pub(crate) _b: Option<String>, | ||
| ^^^^^^^^^^^^^ | ||
LL | pub _c: i64, | ||
| ^^^^^^ | ||
| | ||
= help: consider removing the underscore, or making the field private | ||
|
||
error: field marked as public but also inferred as unused because it's prefixed with `_` | ||
--> $DIR/pub_underscore_fields.rs:40:13 | ||
--> $DIR/pub_underscore_fields.rs:30:9 | ||
| | ||
LL | pub(super) _b: u8, | ||
| ^^^^^^^^^^^^^ | ||
LL | pub _e: Option<u8>, | ||
| ^^^^^^ | ||
| | ||
= help: consider removing the underscore, or making the field private | ||
|
||
error: field marked as public but also inferred as unused because it's prefixed with `_` | ||
--> $DIR/pub_underscore_fields.rs:48:13 | ||
--> $DIR/pub_underscore_fields.rs:43:9 | ||
| | ||
LL | pub(in super::inner) _f: Option<()>, | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
LL | pub(crate) _b: Option<String>, | ||
| ^^^^^^^^^^^^^ | ||
| | ||
= help: consider removing the underscore, or making the field private | ||
|
||
error: aborting due to 8 previous errors | ||
error: aborting due to 6 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0433`. |