Skip to content

nightly build failure #2742

Closed
Closed
@matthiaskrgr

Description

@matthiaskrgr

rustc 1.27.0-nightly (acd3871 2018-05-10)
clippy be3cba8

   Compiling cargo_metadata v0.5.4
   Compiling clippy_lints v0.0.197 (https://github.com/rust-lang-nursery/rust-clippy/#be3cba88)
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/consts.rs:429:13
    |
429 |             ty::TyRef(_, tam) => match tam.ty.sty {
    |             ^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/utils/mod.rs:677:9
    |
677 |         ty::TyRef(_, ref tm) => walk_ptrs_ty(tm.ty),
    |         ^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/utils/mod.rs:687:13
    |
687 |             ty::TyRef(_, ref tm) => inner(tm.ty, depth + 1),
    |             ^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/loops.rs:746:9
    |
746 |         ty::TyRef(_, ref subty) => is_slice_like(cx, subty.ty),
    |         ^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
    --> clippy_lints/src/loops.rs:1368:17
     |
1368 |                 ty::TyRef(_, ref tam) => match (&pat[0].node, &pat[1].node) {
     |                 ^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
    --> clippy_lints/src/loops.rs:1708:28
     |
1708 |                     if let ty::TyRef(_, mutbl) = ty.sty {
     |                            ^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
    --> clippy_lints/src/loops.rs:1720:28
     |
1720 |                     if let ty::TyRef(_, mutbl) = ty.sty {
     |                            ^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> clippy_lints/src/map_clone.rs:54:44
   |
54 |                                     if let ty::TyRef(_, tam) = ty.sty {
   |                                            ^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/methods.rs:752:21
    |
752 |                     ty::TyRef(_, ty) if ty.ty.sty == ty::TyStr => for &(method, pos) in &PATTERN_METHODS {
    |                     ^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/methods.rs:970:12
    |
970 |     if let ty::TyRef(_, ty::TypeAndMut { ty: inner, .. }) = arg_ty.sty {
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/methods.rs:971:16
    |
971 |         if let ty::TyRef(_, ty::TypeAndMut { ty: innermost, .. }) = inner.sty {
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/methods.rs:981:31
    |
981 |                     while let ty::TyRef(_, ty::TypeAndMut { ty: inner, .. }) = ty.sty {
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
    --> clippy_lints/src/methods.rs:1318:13
     |
1318 |             ty::TyRef(_, ty::TypeAndMut { ty: inner, .. }) => if may_slice(cx, inner) {
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
    --> clippy_lints/src/methods.rs:1303:13
     |
1303 |             ty::TyRef(_, ty::TypeAndMut { ty: inner, .. }) => may_slice(cx, inner),
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> clippy_lints/src/mut_mut.rs:73:27
   |
73 |               } else if let ty::TyRef(
   |  ___________________________^
74 | |                 _,
75 | |                 ty::TypeAndMut {
76 | |                     mutbl: hir::MutMutable,
77 | |                     ..
78 | |                 },
79 | |             ) = self.cx.tables.expr_ty(e).sty
   | |_____________^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> clippy_lints/src/mut_reference.rs:64:21
   |
64 | /                     ty::TyRef(
65 | |                         _,
66 | |                         ty::TypeAndMut {
67 | |                             mutbl: MutImmutable,
68 | |                             ..
69 | |                         },
70 | |                     ) |
   | |_____________________^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> clippy_lints/src/needless_borrow.rs:80:20
   |
80 |             if let ty::TyRef(_, ref tam) = cx.tables.pat_ty(pat).sty;
   |                    ^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> clippy_lints/src/needless_borrow.rs:82:20
   |
82 |             if let ty::TyRef(_, ref tam) = tam.ty.sty;
   |                    ^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/ptr.rs:153:16
    |
153 |           if let ty::TyRef(
    |  ________________^
154 | |             _,
155 | |             ty::TypeAndMut {
156 | |                 ty,
157 | |                 mutbl: MutImmutable,
158 | |             },
159 | |         ) = ty.sty
    | |_________^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/transmute.rs:232:31
    |
232 |                             (&ty::TyRef(_, rty), &ty::TyRawPtr(ptr_ty)) => span_lint_and_then(
    |                               ^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/transmute.rs:287:56
    |
287 |                             (&ty::TyRawPtr(from_pty), &ty::TyRef(_, to_ref_ty)) => span_lint_and_then(
    |                                                        ^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/transmute.rs:334:31
    |
334 |                             (&ty::TyRef(_, ref ref_from), &ty::TyRef(_, ref ref_to)) => {
    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
   --> clippy_lints/src/transmute.rs:334:60
    |
334 |                             (&ty::TyRef(_, ref ref_from), &ty::TyRef(_, ref ref_to)) => {
    |                                                            ^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
  --> clippy_lints/src/vec.rs:38:20
   |
38 |             if let ty::TyRef(_, ref ty) = cx.tables.expr_ty_adjusted(expr).sty;
   |                    ^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2
error: aborting due to 24 previous errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions