clippy 0.0.129

A bunch of helpful lints to avoid common pitfalls in Rust
Build #48184 2017-05-01T12:44:30.780610+00:00
# rustc version
rustc 1.18.0-nightly (bbdaad0dc 2017-04-14)
# docs.rs version
cratesfyi 0.3.2 (e3bc9fb 2017-04-22)

# build log
Build failed, waiting for other jobs to finish...
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading clippy v0.0.129
Compiling unicode-normalization v0.1.4
Compiling serde v0.9.15
Compiling itoa v0.3.1
Compiling matches v0.1.4
Compiling dtoa v0.4.1
Compiling rustc-serialize v0.3.24
Compiling unicode-xid v0.0.4
Compiling semver-parser v0.7.0
Running `rustc --crate-name unicode_normalization .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-normalization-0.1.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=0297b14f098a4d93 -C extra-filename=-0297b14f098a4d93 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Running `rustc --crate-name itoa .cargo/registry/src/github.com-1ecc6299db9ec823/itoa-0.3.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=7224f7b9cf4017b1 -C extra-filename=-7224f7b9cf4017b1 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Running `rustc --crate-name serde .cargo/registry/src/github.com-1ecc6299db9ec823/serde-0.9.15/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="std"' --cfg 'feature="default"' -C metadata=f6f84dbb40611885 -C extra-filename=-f6f84dbb40611885 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Running `rustc --crate-name matches .cargo/registry/src/github.com-1ecc6299db9ec823/matches-0.1.4/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=8f1598a59712d6cc -C extra-filename=-8f1598a59712d6cc --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Running `rustc --crate-name dtoa .cargo/registry/src/github.com-1ecc6299db9ec823/dtoa-0.4.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=14210f5fcc36f62c -C extra-filename=-14210f5fcc36f62c --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Running `rustc --crate-name rustc_serialize .cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.24/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=045ad31fd66a0cc1 -C extra-filename=-045ad31fd66a0cc1 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Running `rustc --crate-name unicode_xid .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.0.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=0718538d6479f922 -C extra-filename=-0718538d6479f922 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Running `rustc --crate-name semver_parser .cargo/registry/src/github.com-1ecc6299db9ec823/semver-parser-0.7.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=df3c236d49c7b60f -C extra-filename=-df3c236d49c7b60f --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Compiling synom v0.11.3
Running `rustc --crate-name synom .cargo/registry/src/github.com-1ecc6299db9ec823/synom-0.11.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=1fddc0802262e2b9 -C extra-filename=-1fddc0802262e2b9 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern unicode_xid=/home/cratesfyi/clippy-0.0.129/debug/deps/libunicode_xid-0718538d6479f922.rlib --cap-lints allow`
Compiling num-traits v0.1.37
Running `rustc --crate-name num_traits .cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.1.37/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=69f4129d46397118 -C extra-filename=-69f4129d46397118 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Compiling regex-syntax v0.4.0
Running `rustc --crate-name regex_syntax .cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.4.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=21fcdc3a2a66b202 -C extra-filename=-21fcdc3a2a66b202 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Compiling quote v0.3.15
Running `rustc --crate-name quote .cargo/registry/src/github.com-1ecc6299db9ec823/quote-0.3.15/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=565e17019bbf404d -C extra-filename=-565e17019bbf404d --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Compiling quine-mc_cluskey v0.2.4
Running `rustc --crate-name quine_mc_cluskey .cargo/registry/src/github.com-1ecc6299db9ec823/quine-mc_cluskey-0.2.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=9702e7983e184bea -C extra-filename=-9702e7983e184bea --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --cap-lints allow`
Compiling semver v0.6.0
Running `rustc --crate-name semver .cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.6.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=a755b7ebf243aa54 -C extra-filename=-a755b7ebf243aa54 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern semver_parser=/home/cratesfyi/clippy-0.0.129/debug/deps/libsemver_parser-df3c236d49c7b60f.rlib --cap-lints allow`
Compiling syn v0.11.11
Running `rustc --crate-name syn .cargo/registry/src/github.com-1ecc6299db9ec823/syn-0.11.11/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="parsing"' --cfg 'feature="visit"' --cfg 'feature="quote"' --cfg 'feature="synom"' --cfg 'feature="printing"' --cfg 'feature="default"' --cfg 'feature="unicode-xid"' -C metadata=593a087ca2571565 -C extra-filename=-593a087ca2571565 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern unicode_xid=/home/cratesfyi/clippy-0.0.129/debug/deps/libunicode_xid-0718538d6479f922.rlib --extern synom=/home/cratesfyi/clippy-0.0.129/debug/deps/libsynom-1fddc0802262e2b9.rlib --extern quote=/home/cratesfyi/clippy-0.0.129/debug/deps/libquote-565e17019bbf404d.rlib --cap-lints allow`
Compiling toml v0.2.1
Running `rustc --crate-name toml .cargo/registry/src/github.com-1ecc6299db9ec823/toml-0.2.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="rustc-serialize"' -C metadata=94ea404b50476639 -C extra-filename=-94ea404b50476639 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern rustc_serialize=/home/cratesfyi/clippy-0.0.129/debug/deps/librustc_serialize-045ad31fd66a0cc1.rlib --cap-lints allow`
Compiling serde_codegen_internals v0.14.2
Running `rustc --crate-name serde_codegen_internals .cargo/registry/src/github.com-1ecc6299db9ec823/serde_codegen_internals-0.14.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=d56dd4dc3a22cef8 -C extra-filename=-d56dd4dc3a22cef8 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern syn=/home/cratesfyi/clippy-0.0.129/debug/deps/libsyn-593a087ca2571565.rlib --cap-lints allow`
Compiling serde_json v0.9.10
Running `rustc --crate-name serde_json .cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-0.9.10/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=a20ebb8bb7b96947 -C extra-filename=-a20ebb8bb7b96947 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern dtoa=/home/cratesfyi/clippy-0.0.129/debug/deps/libdtoa-14210f5fcc36f62c.rlib --extern serde=/home/cratesfyi/clippy-0.0.129/debug/deps/libserde-f6f84dbb40611885.rlib --extern itoa=/home/cratesfyi/clippy-0.0.129/debug/deps/libitoa-7224f7b9cf4017b1.rlib --extern num_traits=/home/cratesfyi/clippy-0.0.129/debug/deps/libnum_traits-69f4129d46397118.rlib --cap-lints allow`
Compiling clippy_lints v0.0.129
Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=6b35bad839ce00ec -C extra-filename=-6b35bad839ce00ec --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern quine_mc_cluskey=/home/cratesfyi/clippy-0.0.129/debug/deps/libquine_mc_cluskey-9702e7983e184bea.rlib --extern semver=/home/cratesfyi/clippy-0.0.129/debug/deps/libsemver-a755b7ebf243aa54.rlib --extern unicode_normalization=/home/cratesfyi/clippy-0.0.129/debug/deps/libunicode_normalization-0297b14f098a4d93.rlib --extern toml=/home/cratesfyi/clippy-0.0.129/debug/deps/libtoml-94ea404b50476639.rlib --extern matches=/home/cratesfyi/clippy-0.0.129/debug/deps/libmatches-8f1598a59712d6cc.rlib --extern regex_syntax=/home/cratesfyi/clippy-0.0.129/debug/deps/libregex_syntax-21fcdc3a2a66b202.rlib --cap-lints allow`
Compiling serde_derive v0.9.15
Running `rustc --crate-name serde_derive .cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-0.9.15/src/lib.rs --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 -C metadata=0c82b8e5158c5e10 -C extra-filename=-0c82b8e5158c5e10 --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern syn=/home/cratesfyi/clippy-0.0.129/debug/deps/libsyn-593a087ca2571565.rlib --extern serde_codegen_internals=/home/cratesfyi/clippy-0.0.129/debug/deps/libserde_codegen_internals-d56dd4dc3a22cef8.rlib --extern quote=/home/cratesfyi/clippy-0.0.129/debug/deps/libquote-565e17019bbf404d.rlib --cap-lints allow`
error[E0531]: cannot find tuple struct/variant `ItemGlobalAsm` in module `hir`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:375:14
|
375 |         hir::ItemGlobalAsm(ref asm) => println!("global asm: {:?}", asm),
|              ^^^^^^^^^^^^^ not found in `hir`

error[E0531]: cannot find tuple struct/variant `ItemGlobalAsm` in module `hir`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/missing_doc.rs:125:18
|
125 |             hir::ItemGlobalAsm(..) => "an assembly blob",
|                  ^^^^^^^^^^^^^ not found in `hir`

error: no method named `typeck_tables_of` found for type `rustc::ty::TyCtxt<'c, 'cc, 'cc>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/consts.rs:300:42
|
300 |                         tables: self.tcx.typeck_tables_of(def_id),
|                                          ^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/consts.rs:302:25
|
302 |                         substs,
|                         ^^^^^^ expected struct `rustc::ty::Slice`, found struct `rustc::ty::TypeckTables`
|
= note: expected type `&rustc::ty::Slice<rustc::ty::subst::Kind<'_>>`
found type `&rustc::ty::TypeckTables<'_>`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/consts.rs:304:80
|
304 |                     let body = if let Some(id) = self.tcx.hir.as_local_node_id(def_id) {
|                                                                                ^^^^^^ expected struct `rustc::hir::def_id::DefId`, found reference
|
= note: expected type `rustc::hir::def_id::DefId`
found type `&rustc::hir::Expr`

error: no method named `mir_const_qualif` found for type `rustc::ty::TyCtxt<'c, 'cc, 'cc>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/consts.rs:305:34
|
305 |                         self.tcx.mir_const_qualif(def_id);
|                                  ^^^^^^^^^^^^^^^^

error: no method named `item_body` found for type `std::rc::Rc<rustc::middle::cstore::CrateStore + 'static>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/consts.rs:308:46
|
308 |                         self.tcx.sess.cstore.item_body(self.tcx, def_id)
|                                              ^^^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/mod.rs:787:25
|
787 |     let fn_sig = cx.tcx.type_of(fn_def_id).fn_sig();
|                         ^^^^^^^

error: no associated item named `GlobalAsm` found for type `rustc::hir::def::Def` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/mod.rs:908:9
|
908 |         Def::GlobalAsm(id) => Some(id),
|         ^^^^^^^^^^^^^^^^^^

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:399:9
|
399 |         hir::ItemImpl(_, _, _, _, Some(ref _trait_ref), _, _) => {
|         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:402:9
|
402 |         hir::ItemImpl(_, _, _, _, None, _, _) => {
|         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:367:77
|
367 |         hir::ItemStatic(..) => println!("static item of type {:#?}", cx.tcx.type_of(did)),
|                                                                             ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:368:75
|
368 |         hir::ItemConst(..) => println!("const item of type {:#?}", cx.tcx.type_of(did)),
|                                                                           ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:370:34
|
370 |             let item_ty = cx.tcx.type_of(did);
|                                  ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:377:52
|
377 |             println!("type alias for {:?}", cx.tcx.type_of(did));
|                                                    ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:380:61
|
380 |             println!("enum definition of type {:?}", cx.tcx.type_of(did));
|                                                             ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:383:63
|
383 |             println!("struct definition of type {:?}", cx.tcx.type_of(did));
|                                                               ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/utils/inspector.rs:386:62
|
386 |             println!("union definition of type {:?}", cx.tcx.type_of(did));
|                                                              ^^^^^^^

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/assign_ops.rs:152:49
|
152 |                                               let hir::Item_::ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node,
|                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7
...
161 |                           if ops!(op.node,
|  ____________________________- starting here...
162 | |                                 cx,
163 | |                                 ty,
164 | |                                 rty,
...   |
175 | |                                 Shr: BiShr,
176 | |                                 Shl: BiShl) {
| |___________________________________________- ...ending here: in this macro invocation

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/bit_mask.rs:253:78
|
253 |                     let body = if let Some(id) = cx.tcx.hir.as_local_node_id(l) {
|                                                                              ^ expected struct `rustc::hir::def_id::DefId`, found reference
|
= note: expected type `rustc::hir::def_id::DefId`
found type `&rustc::hir::Expr`

error: no method named `mir_const_qualif` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/bit_mask.rs:254:32
|
254 |                         cx.tcx.mir_const_qualif(def_id);
|                                ^^^^^^^^^^^^^^^^

error: no method named `item_body` found for type `std::rc::Rc<rustc::middle::cstore::CrateStore + 'static>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/bit_mask.rs:257:44
|
257 |                         cx.tcx.sess.cstore.item_body(cx.tcx, def_id)
|                                            ^^^^^^^^^

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/derive.rs:74:16
|
74 |         if let ItemImpl(_, _, _, _, Some(ref trait_ref), _, _) = item.node {
|                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/derive.rs:75:29
|
75 |             let ty = cx.tcx.type_of(cx.tcx.hir.local_def_id(item.id));
|                             ^^^^^^^

error: no method named `trait_def` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/derive.rs:99:36
|
99 |         let peq_trait_def = cx.tcx.trait_def(peq_trait_def_id);
|                                    ^^^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/empty_enum.rs:37:29
|
37 |             let ty = cx.tcx.type_of(did);
|                             ^^^^^^^

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/functions.rs:84:33
|
84 |             matches!(item.node, hir::ItemImpl(_, _, _, _, Some(_), _, _) | hir::ItemDefaultImpl(..))
|                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/large_enum_variant.rs:49:29
|
49 |             let ty = cx.tcx.type_of(did);
|                             ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/large_enum_variant.rs:59:41
|
59 |                         let ty = cx.tcx.type_of(f.did);
|                                         ^^^^^^^

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/len_zero.rs:70:13
|
70 |             ItemImpl(_, _, _, _, None, _, ref impl_items) => check_impl_items(cx, item, impl_items),
|             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/len_zero.rs:97:38
|
97 |                 let impl_ty = cx.tcx.type_of(did);
|                                      ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/len_zero.rs:145:29
|
145 |             let ty = cx.tcx.type_of(def_id);
|                             ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/len_zero.rs:124:38
|
124 |                 let impl_ty = cx.tcx.type_of(did);
|                                      ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/len_zero.rs:189:34
|
189 |                 let sig = cx.tcx.type_of(item.def_id).fn_sig();
|                                  ^^^^^^^

error: no method named `inherent_impls` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/len_zero.rs:202:16
|
202 |         cx.tcx.inherent_impls(id)
|                ^^^^^^^^^^^^^^

error: no method named `generics_of` found for type `rustc::ty::TyCtxt<'v, 't, 't>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/lifetimes.rs:284:52
|
284 |                         let generics = self.cx.tcx.generics_of(def_id);
|                                                    ^^^^^^^^^^^

error: no method named `trait_def` found for type `rustc::ty::TyCtxt<'v, 't, 't>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/lifetimes.rs:290:53
|
290 |                         let trait_def = self.cx.tcx.trait_def(def_id);
|                                                     ^^^^^^^^^

error: no method named `generics_of` found for type `rustc::ty::TyCtxt<'v, 't, 't>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/lifetimes.rs:291:47
|
291 |                         for _ in &self.cx.tcx.generics_of(trait_def.def_id).regions {
|                                               ^^^^^^^^^^^

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/methods.rs:645:17
|
645 |             let hir::ItemImpl(_, _, _, _, None, ref self_ty, _) = item.node,
|                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/methods.rs:660:29
|
660 |             let ty = cx.tcx.type_of(cx.tcx.hir.local_def_id(item.id));
|                             ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/needless_pass_by_value.rs:102:29
|
102 |         let fn_sig = cx.tcx.type_of(fn_def_id).fn_sig();
|                             ^^^^^^^

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/new_without_default.rs:113:22
|
113 |                     .type_of(cx.tcx.hir.local_def_id(cx.tcx.hir.get_parent(id)));
|                      ^^^^^^^

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/partialeq_ne_impl.rs:41:17
|
41 |             let ItemImpl(_, _, _, _, Some(ref trait_ref), _, ref impl_items) = item.node,
|                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/print.rs:144:20
|
144 |             if let ItemImpl(_, _, _, _, Some(ref tr), _, _) = item.node {
|                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/ptr.rs:88:24
|
88 |                 if let ItemImpl(_, _, _, _, Some(_), _, _) = it.node {
|                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error: no method named `type_of` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/ptr.rs:116:22
|
116 |     let sig = cx.tcx.type_of(fn_def_id).fn_sig();
|                      ^^^^^^^

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/serde.rs:31:16
|
31 |         if let ItemImpl(_, _, _, _, Some(ref trait_ref), _, ref items) = item.node {
|                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error[E0023]: this pattern has 7 fields, but the corresponding tuple variant has 6 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/types.rs:77:20
|
77 |             if let ItemImpl(_, _, _, _, Some(..), _, _) = item.node {
|                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error: aborting due to 57 previous errors

error: Could not compile `clippy_lints`.

Caused by:
process didn't exit successfully: `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.129/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=6b35bad839ce00ec -C extra-filename=-6b35bad839ce00ec --out-dir /home/cratesfyi/clippy-0.0.129/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.129/debug/deps --extern quine_mc_cluskey=/home/cratesfyi/clippy-0.0.129/debug/deps/libquine_mc_cluskey-9702e7983e184bea.rlib --extern semver=/home/cratesfyi/clippy-0.0.129/debug/deps/libsemver-a755b7ebf243aa54.rlib --extern unicode_normalization=/home/cratesfyi/clippy-0.0.129/debug/deps/libunicode_normalization-0297b14f098a4d93.rlib --extern toml=/home/cratesfyi/clippy-0.0.129/debug/deps/libtoml-94ea404b50476639.rlib --extern matches=/home/cratesfyi/clippy-0.0.129/debug/deps/libmatches-8f1598a59712d6cc.rlib --extern regex_syntax=/home/cratesfyi/clippy-0.0.129/debug/deps/libregex_syntax-21fcdc3a2a66b202.rlib --cap-lints allow` (exit code: 101)
thread 'main' panicked at 'build failed', src/bin/cratesfyi.rs:136
note: Run with `RUST_BACKTRACE=1` for a backtrace.