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

error compiling diesel_codegen v0.8.2 #501

Closed
nkhinchi opened this Issue Nov 24, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@nkhinchi

nkhinchi commented Nov 24, 2016

I am having issues running show_posts owing to diesel_codgen, should I use diesel codegen v0.8.0 instead. I updated it since the diesel v0.8.2 fixed an I faced earlier

Compiling diesel_codegen v0.8.2
error: attribute must only have one argument
--> /home/khinchi/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen-0.8.2/src/lib.rs:41:3
|
41 | #[proc_macro_derive(Identifiable, attributes(table_name))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: attribute must only have one argument
--> /home/khinchi/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen-0.8.2/src/lib.rs:46:3
|
46 | #[proc_macro_derive(Insertable, attributes(table_name, column_name))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: attribute must only have one argument
--> /home/khinchi/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen-0.8.2/src/lib.rs:51:3
|
51 | #[proc_macro_derive(AsChangeset, attributes(table_name, column_name, changeset_options))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: attribute must only have one argument
--> /home/khinchi/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen-0.8.2/src/lib.rs:56:3
|
56 | #[proc_macro_derive(Associations, attributes(table_name, has_many, belongs_to))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: attribute must only have one argument
--> /home/khinchi/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen-0.8.2/src/lib.rs:61:3
|
61 | #[proc_macro_derive(InferSchema, attributes(options))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: attribute must only have one argument
--> /home/khinchi/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen-0.8.2/src/lib.rs:67:3
|
67 | #[proc_macro_derive(InferTableFromSchema, attributes(options))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: attribute must only have one argument
--> /home/khinchi/.cargo/registry/src/github.com-1ecc6299db9ec823/diesel_codegen-0.8.2/src/lib.rs:73:3
|
73 | #[proc_macro_derive(EmbedMigrations, attributes(options))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 7 previous errors
error: Could not compile diesel_codegen.

@nkhinchi

This comment has been minimized.

nkhinchi commented Nov 24, 2016

So, reverting back to diesel_codgen v0.8.1 and rustc 1.14.0-nightly solved the issue.

@nkhinchi nkhinchi closed this Nov 24, 2016

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