Skip to content
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

proc_macro_derive can be used outside of proc-macro crates #37590

Closed
est31 opened this issue Nov 4, 2016 · 0 comments
Closed

proc_macro_derive can be used outside of proc-macro crates #37590

est31 opened this issue Nov 4, 2016 · 0 comments

Comments

@est31
Copy link
Member

est31 commented Nov 4, 2016

This code compiles right now, even though its a) attached to a struct and not a function, and b) used outside a proc-macro crate.

#![feature(proc_macro)]

#[proc_macro_derive(Whatever)]
struct Foo {}
est31 added a commit to est31/rust that referenced this issue Nov 4, 2016
alexcrichton added a commit to alexcrichton/rust that referenced this issue Nov 4, 2016
Add error when proc_macro_derive is used not on functions

Fixes rust-lang#37590
sophiajt pushed a commit to sophiajt/rust that referenced this issue Nov 5, 2016
Add error when proc_macro_derive is used not on functions

Fixes rust-lang#37590
alexcrichton added a commit to alexcrichton/rust that referenced this issue Nov 5, 2016
Add error when proc_macro_derive is used not on functions

Fixes rust-lang#37590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant