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

Spurious "empty trait list in derive" warnings with 1.14.0-nightly (ad19c32a5 2016-10-06) #37033

Closed
nox opened this issue Oct 7, 2016 · 0 comments

Comments

@nox
Copy link
Contributor

nox commented Oct 7, 2016

With an old-style Foo derive plugin, #[derive(Foo)] triggers a warning about an empty trait list.

For example in Servo:

warning: empty trait list in `derive`
   --> /Users/nox/src/servo/components/script/script_runtime.rs:115:3
    |
115 | #[derive(JSTraceable, HeapSizeOf)]
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Manishearth added a commit to Manishearth/rust that referenced this issue Oct 8, 2016
Do not add an empty #[derive()] list in expand_derive (fixes rust-lang#37033)
@bors bors closed this as completed in 0d1ab4e Oct 8, 2016
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