-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
macros: allow attribute invocations at the crate root #36618
Conversation
I unintentionally disallowed attribute macro invocations at the crate root in #36214. |
// option. This file may not be copied, modified, or distributed | ||
// except according to those terms. | ||
|
||
#![derive(Copy)] //~ ERROR `derive` may only be applied to structs and enums |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be ``derive may only be applied to structs, enums and unions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
r=me with test fixed |
2adc803
to
f4fa62f
Compare
@bors r=nrc |
📌 Commit f4fa62f has been approved by |
Fixes #36617.
r? @nrc