Rocket: Hello World fails with 1.28.0-nightly (60efbdead 2018-06-23)

Created on 24 Jun 2018  路  1Comment  路  Source: SergioBenitez/Rocket

rustc --version
rustc 1.28.0-nightly (60efbdead 2018-06-23)

Hello World from https://rocket.rs/guide/getting-started/

cargo run
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling unicode-normalization v0.1.7
   Compiling serde v1.0.66
   Compiling pear_codegen v0.0.17
   Compiling rayon v0.7.1
error[E0023]: this pattern has 6 fields, but the corresponding tuple variant has 4 fields
  --> /home/fkoch/.cargo/registry/src/github.com-1ecc6299db9ec823/pear_codegen-0.0.17/src/lib.rs:66:16
   |
66 |         if let ItemKind::Fn(ref decl, safety, cness, abi, ref generics, ref block) = item.node {
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 fields, found 6

error[E0061]: this function takes 4 parameters but 6 parameters were supplied
  --> /home/fkoch/.cargo/registry/src/github.com-1ecc6299db9ec823/pear_codegen-0.0.17/src/lib.rs:70:24
   |
70 |             let node = ItemKind::Fn(decl.clone(), safety, cness, abi, generics.clone(), new_block);
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 parameters

error: aborting due to 2 previous errors

Some errors occurred: E0023, E0061.
For more information about an error, try `rustc --explain E0023`.
error: Could not compile `pear_codegen`.
nightly breakage

Most helpful comment

Fixed in pear v0.0.18. A cargo update should get you the new version.

>All comments

Fixed in pear v0.0.18. A cargo update should get you the new version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

klnusbaum picture klnusbaum  路  4Comments

lucklove picture lucklove  路  4Comments

Hokutosei picture Hokutosei  路  4Comments

marceloboeira picture marceloboeira  路  3Comments

ndarilek picture ndarilek  路  3Comments