-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compile fails with latest nightly (as of 2018-06-11) #660
Comments
It was caused by this PR rust-lang/rust#51265 |
I am testing a fix and will file a PR against rust-lang/rust when I've confirmed it. |
…Simulacrum Make parse_seq_to_end and parse_path public (see rwf2/Rocket#660, rust-lang#51265) Rocket currently uses `parse_seq_to_end` and `parse_path` in its codegen macros. Assuming I tested correctly, this is the minimal set of methods that are currently necessary to build Rocket again. I would be happy to add documentation of this and Rocket's other usages, if desired.
In addition to rust-lang/rust#51502, this change was needed to keep up with the reorganization: diff --git a/codegen/src/utils/parser_ext.rs b/codegen/src/utils/parser_ext.rs
index 44f18fa..9909e8e 100644
--- a/codegen/src/utils/parser_ext.rs
+++ b/codegen/src/utils/parser_ext.rs
@@ -1,8 +1,7 @@
use syntax::parse::parser::{PathStyle, Parser};
-use syntax::parse::PResult;
+use syntax::parse::{SeqSep, PResult};
use syntax::ast::Path;
use syntax::parse::token::Token::{Eof, Comma};
-use syntax::parse::common::SeqSep;
pub trait ParserExt<'a> {
fn parse_paths(&mut self) -> PResult<'a, Vec<Path>>; I will likely be on vacation by the time this is resolved, and I didn't want to submit a PR for it without knowing which nightly will have the fix. |
…Simulacrum Make parse_seq_to_end and parse_path public (see rwf2/Rocket#660, rust-lang#51265) Rocket currently uses `parse_seq_to_end` and `parse_path` in its codegen macros. Assuming I tested correctly, this is the minimal set of methods that are currently necessary to build Rocket again. I would be happy to add documentation of this and Rocket's other usages, if desired.
I'm still a newbie with Rust, and this is my first time trying both nightly and Rocket. Until this is completely resolved, what is the recommended way of getting my project to compile again? |
@mboogerd last working nightly for me was |
With rust-lang/rust#51502 merged, a new Rocket 0.3 release can be made that works with the latest nightly builds. Unfortunately, due to an oversight on my part, another PR will probably need to be made for rust-lang/rust before master can be fixed. |
|
Or if you have multiple projects like myself and want to override the nightly version for a single project:
Please see https://github.com/rust-lang-nursery/rustup.rs#toolchain-override-shorthand for more details regarding |
The master branch uses these methods in addition to those used in 0.3 that would need to be made public: |
rwf2/Rocket#660 remember to go back to normal nightly asap
Fixed in v0.3.13. |
Hi,
I was playing around with Rocket and Rust using the helloworld example from https://rocket.rs/guide/getting-started. I first tried on my private laptop a few days ago and was very satisfied with the results. Today (2018-06-11) i tried to get everything running on my laptop at work and compilation fails with the following message:
I am using the latest nightly as of today. I am running everthing on my Linux(
Linux 4.14.48-2-MANJARO #1 SMP PREEMPT Fri Jun 8 20:41:40 UTC 2018 x86_64 GNU/Linux
) Laptop and used rustup to install nightly versions.I have switched over to the nighly
nightly-2018-06-09-x86_64-unknown-linux-gnu (default)
and everything compiles fine. So i assume it has something to do with Rust itself affecting Rocket.Investigating further and reading the suggested error messages did not help for me as i am still not that familiar with Rust.
Regards
Sebastian
The text was updated successfully, but these errors were encountered: