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

Build fails on nightly rustc 1.46.0-nightly (346aec9b0 2020-07-11) #1377

Closed
snakehand opened this issue Jul 18, 2020 · 2 comments
Closed

Build fails on nightly rustc 1.46.0-nightly (346aec9b0 2020-07-11) #1377

snakehand opened this issue Jul 18, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@snakehand
Copy link

Cargo.toml:
[dependencies]
rocket = "0.4.5"
rocket_contrib = { version = "0.4.5", features = ["json"] }

Build output:

Compiling rocket_http v0.4.5
error: proc macro panicked
--> /home/frank/.cargo/registry/src/github.com-1ecc6299db9ec823/pear-0.1.2/src/macros.rs:71:9
|
69 | / macro_rules! pear_try {
70 | | ([$name:ident; $input:ident] $e:expr) => {{
71 | | switch! { [$name;$input] result@$e => { Some(result) }, _ => { None } }
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72 | | }};
... |
78 | | }}
79 | | }
| |_- in this expansion of pear_try!
|
::: /home/frank/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket_http-0.4.5/src/parse/uri/parser.rs:119:34
|
119 | let path_and_query = pear_try!(path_and_query(is_pchar));
| ----------------------------------- in this macro invocation
|
= help: message: called Option::unwrap() on a None value

error: aborting due to previous error

error: could not compile rocket_http.

@finnkauski
Copy link

finnkauski commented Jul 18, 2020

   Compiling rocket_http v0.4.5
error: proc macro panicked
   --> /home/finn/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket_http-0.4.5/src/parse/uri/parser.rs:119:34
    |
119 |             let path_and_query = pear_try!(path_and_query(is_pchar));
    |                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: message: called `Option::unwrap()` on a `None` value
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

error: could not compile `rocket_http`.

To learn more, run the command again with --verbose

Fails to compile for me as well.

Cargo.toml

[dependencies]
rocket = "0.4.5"
rocket_contrib = { version = "0.4.5", default-features = false, features = ["diesel_postgres_pool", "tera_templates", "serve"] }
diesel = { version = "1.4.5", features = ["postgres", "r2d2"], default-features = false}
serde = "*"
serde_derive = "*"

@jebrosen
Copy link
Collaborator

See #1358 - this should be fixed by a cargo update.

@jebrosen jebrosen added the duplicate This issue or pull request already exists label Jul 18, 2020
intgr added a commit to intgr/rocket-sentry that referenced this issue Jul 22, 2020
* `register_panic_handler()` is no longer needed, the handler is
 installed automatically.
  See getsentry/sentry-rust#235
* Running `cargo update` may be necessary due to
  rwf2/Rocket#1377
intgr added a commit to intgr/rocket-sentry that referenced this issue Jul 22, 2020
* `register_panic_handler()` is no longer needed, the handler is
 installed automatically.
  See getsentry/sentry-rust#235
* Running `cargo update` may be necessary due to
  rwf2/Rocket#1377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants