Skip to content

failed to compile clippy v0.0.111 #1476

@p-kraszewski

Description

@p-kraszewski
   Compiling clippy_lints v0.0.111
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> /home/pawel/.cargo/registry/src/github.tiyicn.workers.dev-1ecc6299db9ec823/clippy_lints-0.0.111/src/utils/hir.rs:163:15
    |
163 |             (&PatKind::Range(ref ls, ref le), &PatKind::Range(ref rs, ref re)) => {
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> /home/pawel/.cargo/registry/src/github.tiyicn.workers.dev-1ecc6299db9ec823/clippy_lints-0.0.111/src/utils/hir.rs:163:48
    |
163 |             (&PatKind::Range(ref ls, ref le), &PatKind::Range(ref rs, ref re)) => {
    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> /home/pawel/.cargo/registry/src/github.tiyicn.workers.dev-1ecc6299db9ec823/clippy_lints-0.0.111/src/utils/inspector.rs:478:9
    |
478 |         hir::PatKind::Range(ref l, ref r) => {
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> /home/pawel/.cargo/registry/src/github.tiyicn.workers.dev-1ecc6299db9ec823/clippy_lints-0.0.111/src/matches.rs:364:25
    |
363 |                       if_let_chain! {[
    |  _____________________- starting here...
364 | |                     let PatKind::Range(ref lhs, ref rhs) = pat.node,
    | |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
365 | |                     let Ok(lhs) = constcx.eval(lhs, ExprTypeChecked),
366 | |                     let Ok(rhs) = constcx.eval(rhs, ExprTypeChecked)
367 | |                 ], {
368 | |                     return Some(SpannedRange { span: pat.span, node: (lhs, rhs) });
369 | |                 }}
    | |__________________- ...ending here: in this macro invocation

error: aborting due to 4 previous errors

error: failed to compile `clippy v0.0.111`, intermediate artifacts can be found at `/tmp/user/1000/cargo-install.IpUIDN9mFMZx`

Caused by:
  Could not compile `clippy_lints`.

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

Activity

tomprince

tomprince commented on Jan 26, 2017

@tomprince
Contributor

This looks like it is due to rust-lang/rust#35712

added a commit that references this issue on Jan 26, 2017
3e03b5d
added a commit that references this issue on Jan 27, 2017
34399d4
oli-obk

oli-obk commented on Jan 27, 2017

@oli-obk
Contributor

I published 0.112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tomprince@oli-obk@p-kraszewski

        Issue actions

          failed to compile `clippy v0.0.111` · Issue #1476 · rust-lang/rust-clippy