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

pear_codegen-0.0.17 fails on latest nightly #8

Closed
RalfJung opened this issue Jun 24, 2018 · 2 comments
Closed

pear_codegen-0.0.17 fails on latest nightly #8

RalfJung opened this issue Jun 24, 2018 · 2 comments

Comments

@RalfJung
Copy link

On the current nightly

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

the latest pear_codegen fails to build:

error[E0023]: this pattern has 6 fields, but the corresponding tuple variant has 4 fields
  --> /home/r/.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/r/.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
@SergioBenitez
Copy link
Owner

Fixed in v0.0.18. Thanks!

@RalfJung
Copy link
Author

Thank you for the quick fix. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants