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

Failed to build with rustc 1.21.0-nightly (c11f689d2 2017-08-29) #2002

Closed
Frederick888 opened this issue Aug 30, 2017 · 0 comments
Closed

Failed to build with rustc 1.21.0-nightly (c11f689d2 2017-08-29) #2002

Frederick888 opened this issue Aug 30, 2017 · 0 comments

Comments

@Frederick888
Copy link
Contributor

Due to: rust-lang/rust#43076

Logs:

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/utils/hir_utils.rs:376:13
    |
376 |             ExprClosure(cap, _, eid, _) => {
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error[E0308]: mismatched types
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/utils/hir_utils.rs:377:46
    |
377 |                 let c: fn(_, _, _, _) -> _ = ExprClosure;
    |                                              ^^^^^^^^^^^ incorrect number of function parameters
    |
    = note: expected type `fn(_, _, _, _) -> _`
               found type `fn(rustc::hir::CaptureClause, syntax::ptr::P<rustc::hir::FnDecl>, rustc::hir::BodyId, syntax_pos::Span, bool) -> rustc::hir::Expr_ {rustc::hir::Expr_::ExprClosure}`

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/utils/inspector.rs:248:9
    |
248 |         hir::ExprClosure(ref clause, _, _, _) => {
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/utils/author.rs:299:13
    |
299 |             Expr_::ExprClosure(ref _capture_clause, ref _func, _, _) => {
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/block_in_if_condition.rs:59:16
   |
59 |         if let ExprClosure(_, _, eid, _) = expr.node {
   |                ^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/bytecount.rs:46:17
   |
46 |             let ExprClosure(_, _, body_id, _) = filter_args[1].node,
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/eta_reduction.rs:52:12
   |
52 |     if let ExprClosure(_, ref decl, eid, _) = expr.node {
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/eval_order_dependence.rs:242:9
    |
242 |         ExprClosure(_, _, _, _) => {
    |         ^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
   --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/eval_order_dependence.rs:326:13
    |
326 |             ExprClosure(_, _, _, _) |
    |             ^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 5 fields
  --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.154/src/map_clone.rs:34:21
   |
34 |                     ExprClosure(_, ref decl, closure_eid, _) => {
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 4

error: aborting due to 10 previous errors

error: Could not compile `clippy_lints`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `clippy v0.0.154`, intermediate artifacts can be found at `/tmp/cargo-install.y9YJ20VrqyYF`
                                                                                                                                                                                               
Caused by:                                                                                                                                                                                     
  build failed
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

1 participant