Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Build issues with nightly-2016-07-07 #56

Closed
freiguy1 opened this issue Aug 5, 2016 · 2 comments
Closed

Build issues with nightly-2016-07-07 #56

freiguy1 opened this issue Aug 5, 2016 · 2 comments
Labels

Comments

@freiguy1
Copy link

freiguy1 commented Aug 5, 2016

Hello there. I'm working on a REST api and am using several libraries like serde, diesel (orm), and iron. The latest nightly which diesel is able to compile with is nightly-2016-07-07. I'm attempting to get this project building and having errors when compiling quasi.

My Cargo.toml file looks like:

name = "league-api"
version = "0.0.1"

[dependencies]

# Serialization
serde = "0.8"
serde_json = "0.8"
serde_macros = "0.8"
syntex_syntax = "0.39"

# Iron
iron = "0.4"
persistent = "0.2"
router = "0.2"
bodyparser = "0.4"
hyper = "0.9"

# Data Persistence
diesel = "0.7"
r2d2-diesel = "0.7"
league_db = { path = "../db" }
r2d2 = "0.7"

# Util
regex = "0.1"
pwhash = "0.1"
rand = "0.3"
jwt = "0.4"
rust-crypto = "0.2"

My Cargo.lock is quite long, but if needed I can add it.

The error looks like:

/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:230:48: 235:11 error: mismatched types [E0308]
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:230         r.push(TokenTree::Delimited(self.span, Rc::new(tokenstream::Delimited {
                                                                                                                                                                                ^
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:230:48: 235:11 help: run `rustc --explain E0308` to see a detailed explanation
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:230:48: 235:11 note: expected type `syntax::tokenstream::Delimited`
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:230:48: 235:11 note:    found type `std::rc::Rc<syntax::tokenstream::Delimited>`
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:251:45: 256:11 error: mismatched types [E0308]
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:251         vec![TokenTree::Delimited(DUMMY_SP, Rc::new(tokenstream::Delimited {
                                                                                                                                                                             ^
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:251:9: 256:13 note: in this expansion of vec! (defined in <std macros>)
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:251:45: 256:11 help: run `rustc --explain E0308` to see a detailed explanation
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:251:45: 256:11 note: expected type `syntax::tokenstream::Delimited`
/home/freied/.multirust/toolchains/nightly-2016-07-07/cargo/registry/src/github.com-1ecc6299db9ec823/quasi-0.16.0/src/lib.rs:251:45: 256:11 note:    found type `std::rc::Rc<syntax::tokenstream::Delimited>`
error: aborting due to 2 previous errors
Build failed, waiting for other jobs to finish...
error: Could not compile `quasi`.

Any ideas?

Thanks!

@dtolnay
Copy link
Contributor

dtolnay commented Aug 5, 2016

Serde_macros and quasi_macros always support the newest nightly only. Nightly means you update every night.

The latest nightly which diesel is able to compile with is nightly-2016-07-07.

That means there is no nightly version that is supported by both the newest version of diesel and the newest version of serde, so you will need to use an old version of serde. See serde-rs/serde#470 for a way to do this.

@dtolnay dtolnay added the support label Aug 5, 2016
@freiguy1
Copy link
Author

freiguy1 commented Aug 5, 2016

Nightly means you update every night.

Too bad this isn't everyone's mentality. Thanks, I'll check it out.

@freiguy1 freiguy1 closed this as completed Aug 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants