clippy_lints 0.0.128

A bunch of helpful lints to avoid common pitfalls in Rust
Build #47890 2017-04-28T11:26:32.706854+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
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading clippy_lints v0.0.128
Compiling regex-syntax v0.4.0
Compiling rustc-serialize v0.3.24
Compiling unicode-normalization v0.1.4
Compiling semver-parser v0.7.0
Compiling matches v0.1.4
Compiling quine-mc_cluskey v0.2.4
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_lints-0.0.128/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.128/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_lints-0.0.128/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.128/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_lints-0.0.128/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.128/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_lints-0.0.128/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.128/debug/deps --cap-lints allow`
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_lints-0.0.128/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.128/debug/deps --cap-lints allow`
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_lints-0.0.128/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.128/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_lints-0.0.128/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.128/debug/deps --extern semver_parser=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libsemver_parser-df3c236d49c7b60f.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_lints-0.0.128/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.128/debug/deps --extern rustc_serialize=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/librustc_serialize-045ad31fd66a0cc1.rlib --cap-lints allow`
Documenting clippy_lints v0.0.128
Running `rustdoc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.128/src/lib.rs -o /home/cratesfyi/clippy_lints-0.0.128/doc -L dependency=/home/cratesfyi/clippy_lints-0.0.128/debug/deps --extern toml=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libtoml-94ea404b50476639.rlib --extern quine_mc_cluskey=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libquine_mc_cluskey-9702e7983e184bea.rlib --extern regex_syntax=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libregex_syntax-21fcdc3a2a66b202.rlib --extern unicode_normalization=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libunicode_normalization-0297b14f098a4d93.rlib --extern semver=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libsemver-a755b7ebf243aa54.rlib --extern matches=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libmatches-8f1598a59712d6cc.rlib`
error[E0531]: cannot find tuple struct/variant `ItemGlobalAsm` in module `hir`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.128/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.128/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.128/src/consts.rs:292:42
|
292 |                         tables: self.tcx.typeck_tables_of(const_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.128/src/consts.rs:296:34
|
296 |                         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.128/src/consts.rs:299:46
|
299 |                         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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/src/derive.rs:75:16
|
75 |         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.128/src/derive.rs:76:29
|
76 |             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.128/src/derive.rs:100:36
|
100 |         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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/src/len_zero.rs:189:34
|
189 |                 let sig = cx.tcx.type_of(item.def_id).fn_sig();
|                                  ^^^^^^^

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.128/src/lifetimes.rs:284:52
|
284 |                         let generics = self.cx.tcx.generics_of(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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/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.128/src/types.rs:77:20
|
77 |             if let ItemImpl(_, _, _, _, Some(..), _, _) = item.node {
|                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 7

error: Compilation failed, aborting rustdoc

thread 'main' panicked at 'ChainedError {
error: Could not document `clippy_lints`.,
cause: process didn't exit successfully: `rustdoc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.128/src/lib.rs -o /home/cratesfyi/clippy_lints-0.0.128/doc -L dependency=/home/cratesfyi/clippy_lints-0.0.128/debug/deps --extern toml=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libtoml-94ea404b50476639.rlib --extern quine_mc_cluskey=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libquine_mc_cluskey-9702e7983e184bea.rlib --extern regex_syntax=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libregex_syntax-21fcdc3a2a66b202.rlib --extern unicode_normalization=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libunicode_normalization-0297b14f098a4d93.rlib --extern semver=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libsemver-a755b7ebf243aa54.rlib --extern matches=/home/cratesfyi/clippy_lints-0.0.128/debug/deps/libmatches-8f1598a59712d6cc.rlib` (exit code: 101)
}', src/bin/cratesfyi.rs:136
note: Run with `RUST_BACKTRACE=1` for a backtrace.