Skip to content
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

rocket_codegen Build Fails 1.38.0-nightly #1049

Closed
jacob-stuart opened this issue Jul 11, 2019 · 9 comments
Closed

rocket_codegen Build Fails 1.38.0-nightly #1049

jacob-stuart opened this issue Jul 11, 2019 · 9 comments
Labels
nightly breakage Breakage on the nightly channel only

Comments

@jacob-stuart
Copy link

  1. The version of Rocket you're using. Ensure it's the latest, if possible.
commit 2d4dc5ae58f3c210199ed4ab59f2709cece4f0fa (HEAD, tag: v0.4.2)
Author: Sergio Benitez <sb@sergio.bz>
Date:   Fri Jun 28 17:50:57 2019 -0700

    New version: 0.4.2.
  1. The operating system (distribution and version) where the issue occurs.
Ubuntu 19.04
  1. A brief description of the bug that includes:
    Hello world example fails to compile rocket_codegen on latest ubuntu and latest nightly rust.

  2. How you uncovered the bug. Short, reproducible tests are especially useful.

Rocket/examples/hello_world$ cargo run
   Compiling rocket_codegen v0.4.2 (/home/stuart/src/Rocket/core/codegen)
error[E0433]: failed to resolve: unresolved import
  --> core/codegen/src/bang/uri_parsing.rs:18:13
   |
18 |     Ignored(Token![_]),
   |             ^^^^^^^^^
   |             |
   |             unresolved import
   |             help: a similar path exists: `devise::syn::token`
   |
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

.
.
.

5. Ideas, if any, about what Rocket is doing incorrectly.

@messense
Copy link
Contributor

messense commented Jul 11, 2019

I think it's rust-lang/rust#62562

@jebrosen jebrosen added nightly breakage Breakage on the nightly channel only upstream An unresolvable issue: an upstream dependency bug and removed upstream An unresolvable issue: an upstream dependency bug labels Jul 11, 2019
@AlterionX
Copy link

Just to save a link, you can roll back to nightly-2019-07-10 before it gets fixed.

@SergioBenitez
Copy link
Member

As this is a compiler bug, there's unfortunately nothing we can do but wait for tonight's nightly.

@Trolldemorted
Copy link

rocket does not build on nightly-2019-07-10 either:

C:\Users\Benni\repositories\ENOKEY>cargo build
   Compiling serde_derive v1.0.94
   Compiling rocket_codegen v0.4.2
error[E0433]: failed to resolve: unresolved import
  --> C:\Users\Benni\.cargo\registry\src\github.com-1ecc6299db9ec823\rocket_codegen-0.4.2\src\bang\uri_parsing.rs:18:13
   |
18 |     Ignored(Token![_]),
   |             ^^^^^^^^^
   |             |
   |             unresolved import
   |             help: a similar path exists: `devise::syn::token`
   |
   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

@AlterionX
Copy link

AlterionX commented Jul 11, 2019

😢 Roll back another day. I had it building on nightly-2019-07-09.

On a bright note, fix has been merged into master: rust-lang/rust#62574

@Trolldemorted
Copy link

yeah with 2019-07-09 it works, now we have to convince our docker containers to use that version :(

If you'd solve #19 that would be great :)

@AlterionX
Copy link

Are you using Rocket in prod? What company/site? (Purely out of curiosity, and since my friend was asking about nightlies in prod.)

@Trolldemorted
Copy link

It is just a hobby project with a fanatic nightly rustacean project lead :|

Unfortunately the Cinsects CTF is gonna start in 8.5 hours and we have to get our infrastructure up and running until then, otherwise we'd have to gather and deploy ssh keys manually like some kind of animal!

@olback
Copy link
Contributor

olback commented Jul 12, 2019

@Trolldemorted New nightly build is available now and I can confirm that the issue is fixed.

Build on the latest release:
https://circleci.com/gh/olback/olback.net/148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nightly breakage Breakage on the nightly channel only
Projects
None yet
Development

No branches or pull requests

7 participants