Warnings from rust nightly #37

Open
opened 2024-01-07 10:13:18 +00:00 by oscargus · 0 comments
oscargus commented 2024-01-07 10:13:18 +00:00 (Migrated from github.com)

It seems like some additional dead code analysis was introduced in the most recent nightly:

warning: field `0` is never read
  --> FastWaveBackend/src/vcd/reader.rs:12:24
   |
12 | pub(super) struct Line(pub(super) usize);
   |                   ---- ^^^^^^^^^^^^^^^^
   |                   |
   |                   field in this struct
   |
   = note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
12 | pub(super) struct Line(());
   |                        ~~
warning: field `0` is never read
  --> FastWaveBackend/src/vcd/utilities.rs:14:16
   |
14 |     OtherValue(char),
   |     ---------- ^^^^
   |     |
   |     field in this variant
   |
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
14 |     OtherValue(()),
   |                ~~
It seems like some additional dead code analysis was introduced in the most recent nightly: ``` warning: field `0` is never read --> FastWaveBackend/src/vcd/reader.rs:12:24 | 12 | pub(super) struct Line(pub(super) usize); | ---- ^^^^^^^^^^^^^^^^ | | | field in this struct | = note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 12 | pub(super) struct Line(()); | ~~ warning: field `0` is never read --> FastWaveBackend/src/vcd/utilities.rs:14:16 | 14 | OtherValue(char), | ---------- ^^^^ | | | field in this variant | help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field | 14 | OtherValue(()), | ~~ ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Yehowshua/FastWaveBackend#37
No description provided.