Conversation
```
warning: field `0` is never read
--> crossbeam-epoch/src/collector.rs:290:21
|
290 | struct Elem(i32);
| ---- ^^^
| |
| field in this struct
|
= 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
|
290 | struct Elem(());
| ~~
warning: field `0` is never read
--> crossbeam-epoch/src/collector.rs:354:21
|
354 | struct Elem(i32);
| ---- ^^^
| |
| field in this struct
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
354 | struct Elem(());
| ~~
warning: field `0` is never read
--> crossbeam-epoch/src/collector.rs:431:21
|
431 | struct Elem(i32);
| ---- ^^^
| |
| field in this struct
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
431 | struct Elem(());
| ~~
warning: field `0` is never read
--> crossbeam-utils/tests/atomic_cell.rs:9:22
|
9 | struct UsizeWrap(usize);
| --------- ^^^^^
| |
| field in this struct
|
= 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
|
9 | struct UsizeWrap(());
| ~~
warning: field `0` is never read
--> crossbeam-utils/tests/atomic_cell.rs:10:19
|
10 | struct U8Wrap(bool);
| ------ ^^^^
| |
| field in this struct
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
10 | struct U8Wrap(());
| ~~
warning: field `0` is never read
--> crossbeam-utils/tests/atomic_cell.rs:11:20
|
11 | struct I16Wrap(i16);
| ------- ^^^
| |
| field in this struct
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
11 | struct I16Wrap(());
| ~~
warning: field `0` is never read
--> crossbeam-utils/tests/atomic_cell.rs:13:22
|
13 | struct U64Align8(u64);
| --------- ^^^
| |
| field in this struct
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
13 | struct U64Align8(());
| ~~
warning: field `0` is never read
--> crossbeam-channel/benchmarks/message.rs:6:27
|
6 | pub(crate) struct Message(pub(crate) [usize; LEN]);
| ------- ^^^^^^^^^^^^^^^^^^^^^^^
| |
| field in this struct
|
= note: `Message` has a derived impl for the trait `Clone`, but this is 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
|
6 | pub(crate) struct Message(());
| ~~
```
The current one does not cause real problems at this time because the size allocated is large enough, but it's better to use the more correct one.
- crossbeam-channel 0.5.10 -> 0.5.11 - crossbeam-deque 0.8.4 -> 0.8.5 - crossbeam-epoch 0.9.17 -> 0.9.18 - crossbeam-queue 0.3.10 -> 0.3.11 - crossbeam-utils 0.8.18 -> 0.8.19 - crossbeam 0.8.3 -> 0.8.4
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cfg-if. (Remove dependency on cfg-if #1072)cfg-if. (Remove dependency on cfg-if #1072)cfg-if. (Remove dependency on cfg-if #1072)autocfg. (epoch: Remove unused autocfg dependency #1071)cfg-if. (Remove dependency on cfg-if #1072)cfg-if. (Remove dependency on cfg-if #1072)cfg-if. (Remove dependency on cfg-if #1072)