-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveL-nurseryLint: Currently in the nursery groupLint: Currently in the nursery group
Description
The non_send_fields_in_send_ty lint wrongly states that implementations of Send
are unsound because some fields are !Send
.
If the fields were Send
, there would be no need to write unsafe impl Send for S {}
, as S
would be automatically Send
. The only time you need to explicitly implement Send
for a struct is when some fields aren't Send
. That is why the code needs to be marked unsafe
.
madsmtm, sdroege, bilelmoussaoui, GuillaumeGomez, Xaeroxe and 17 more
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't haveL-nurseryLint: Currently in the nursery groupLint: Currently in the nursery group