-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The dead_code lint was previously eroneously missing those. Since this lint bug has been fixed, the unused fields need to be marked #[allow(dead_code)].
- Loading branch information
Showing
2 changed files
with
2 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
mod foo { | ||
pub struct Point { | ||
pub x: i32, | ||
#[allow(dead_code)] | ||
pub y: i32, | ||
} | ||
} | ||
|
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ macro_rules! duplicate { | |
|
||
duplicate! { | ||
pub union U { | ||
#[allow(dead_code)] | ||
pub a: u8 | ||
} | ||
} | ||
|