Open
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
.