Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upMacros 1.1 broken on nightly-2016-10-20 #485
Comments
This comment has been minimized.
|
I think this is a bug in the latest nightly, but I will investigate further. |
This comment has been minimized.
oeb25
commented
Oct 23, 2016
|
FYI using the macro around the struct results in the same error eg. // src/models.rs
Queryable! { struct Thing { ... } }error: `Queryable` is a derive mode
--> src/models.rs:3:1
|
3 | Queryable! { struct Thing { ... } }
| ^^^^^^^^^having // src/lib.rs
extern crate dotenv;
#[macro_use] extern crate diesel;
#[macro_use] extern crate diesel_codegen;
use diesel::prelude::*;
use diesel::pg::PgConnection;
use dotenv::dotenv;
use std::env;
pub mod schema;
pub mod models;Any update on this? I read jseyfried's comment on the issue on the rust repo, but I'm not entirely sure what this means for Diesel. Does this require a change in Diesel, user code or are we waiting for a fix in rust? |
This comment has been minimized.
|
Any update on this? Just hit this bug. |
This comment has been minimized.
|
I'm hoping to get this fixed upstream. |
jseyfried
referenced this issue
Oct 31, 2016
Closed
Tracking issue for "Macros 1.1" (RFC #1681) #35900
This comment has been minimized.
|
@sgrif That seems like a direction that might take some time, if it is resolved in your favor at all. The issue seems to be that a recent change put macros and |
shssoichiro commentedOct 21, 2016
If I try to compile a program which uses diesel 0.8.0, using rustc nightly-2016-10-20, the compilation fails in my crate with the following errors:
The program compiles and runs successfully on nightly-2016-10-19. Unless this is a bug in the latest nightly, the assumption that macros 1.1 would keep diesel from breaking with nightly updates may have been incorrect.