-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsafe derives and attributes #3715
base: master
Are you sure you want to change the base?
Conversation
2339301
to
0530e44
Compare
Just my 2¢, but I think that the shorthand for You have to separate out derive traits any time there's some different requirement, e.g. Sure, it's likely it won't make a difference, but I think that only having to check attributes at the top level for unsafe to verify safety is best. |
The greppability is already broken by things like |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I feel kind of silly for literally alluding to this point in my post and missing it somehow. You're right and I retract my original claim. |
We had a @rust-lang/lang design meeting today on the set of macro RFCs. I've updated the RFC to incorporate the feedback from that design meeting. Per the feedback in that meeting, I'm starting an FCP to start letting people register consensus for this RFC. @rfcbot merge |
Team member @joshtriplett has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
Allow declaring proc macro attributes and derive macros as unsafe, and
requiring
unsafe
to invoke them.Rendered