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 upCompilation error on get_result #227
Comments
This comment has been minimized.
|
Sorry for taking so long to reply here. I've looked through your code, and nothing looks immediately wrong to me. Is it possible to replicate this issue with less code? Sorry for the troubles that you've been having. Improving our error messages for cases like this is definitely on the radar. |
This comment has been minimized.
|
I'll see if I can narrow it down some more and get a simpler reproduction. Thanks for taking a look! |
This comment has been minimized.
|
@jimmycuadra Were you able to pare this down at all? I tried to build your example, but there's conflicts with quasi (presumably due to serde versions not being updated for the latest nightly or something). If you can just pull out the diesel code into something I can use to reproduce, that'd be helpful. But I can't build your entire app. |
This comment has been minimized.
|
Sorry, no, I haven't checked it again since first opening the issue. I've been knee deep in other projects. You can let it sit for now and I will leave a comment as soon as I update the branch and verify it's still a problem and/or figure out a smaller reproducible test case. |
This comment has been minimized.
|
Thanks for the update. Let me know if there's anything else I can do to help. |
This comment has been minimized.
|
I got a chance to look at this again and was able to reproduce the error without so much set up and unrelated code. Take a look here: https://github.com/jimmycuadra/diesel_error |
This comment has been minimized.
|
Thanks, I'll try to fix this today. On Thu, Mar 31, 2016, 1:40 AM Jimmy Cuadra notifications@github.com wrote:
|
sgrif
referenced this issue
Mar 31, 2016
Closed
Trying to pass an owned value to `insert` gives an extremely unhelpful error message #249
This comment has been minimized.
|
I should have spotted this originally. The issue is that That said, there's no reason you would be expected to figure out the problem in your code from the error message given. We either need to improve the error message here, or just have this case work. I've opened a new issue for that in #249. Thanks for the report, sorry I didn't spot the error initially. |
sgrif
closed this
Mar 31, 2016
This comment has been minimized.
|
Ah ha! Glad it was simple as that! Thanks so much. |
This comment has been minimized.
|
No problem. The result ended up being a big win for our error messages. |
jimmycuadra commentedFeb 26, 2016
I'm getting a compilation error on nightly Rust (rustc 1.8.0-nightly (0ef8d4260 2016-02-24) / cargo 0.9.0-nightly (c91bf61 2016-02-24)) from calling
get_resulton an insert statement. Here is the error:I tried to create a reduced test case but I can't get it to fail in other scenarios. So here is the exact code that generated the above error: https://github.com/ruma/ruma/tree/diesel-error
You'll need a local copy of Diesel checked out at HEAD in a sibling directory (see
.cargo/config).I know there's a lot of code that's probably not related to wade through in Ruma, so here are what I think are the relevant details:
table!insrc/schema.rs.src/server.rs.src/api/r0/registration.rs.src/db.rs.src/user.rsandsrc/access_token.rs.Let me know what other info I can provide to help narrow this down!