-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Their single purpose is improving diagnostics.
When those macros expand they always produce an error saying that unsafe impl Send for Foo {}
should be written explicitly rather than derived.
So, when #61877 is implemented you'll be able to write use Send
or use std::Send
without an error, but that's not an intent.
The macros should be removed, and derive(Send)
should result in a resolution error, and the suggestion to write unsafe impl Send for Foo {}
explicitly should be put on that resolution error.
Metadata
Metadata
Assignees
Labels
A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.