clippy 0.0.92

A bunch of helpful lints to avoid common pitfalls in Rust
Build #31447 2016-09-30T20:39:14.760649+00:00
# rustc version
rustc 1.13.0-nightly (4f9812a59 2016-09-21)
# docs.rs version
cratesfyi 0.2.0 (fb1be72 2016-08-29)

# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading clippy v0.0.92
Downloading clippy_lints v0.0.92
Compiling rustc-serialize v0.3.19
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.19/src/lib.rs --crate-name rustc_serialize --crate-type lib -g -C metadata=3561541d79c18212 -C extra-filename=-3561541d79c18212 --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --cap-lints allow`
Compiling nom v1.2.4
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/nom-1.2.4/src/lib.rs --crate-name nom --crate-type lib -g --cfg feature=\"stream\" --cfg feature=\"default\" -C metadata=24d7a34b1cbfee73 -C extra-filename=-24d7a34b1cbfee73 --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --cap-lints allow`
Compiling unicode-normalization v0.1.2
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-normalization-0.1.2/src/lib.rs --crate-name unicode_normalization --crate-type lib -g -C metadata=5de3a9c8fd8ddf4e -C extra-filename=-5de3a9c8fd8ddf4e --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --cap-lints allow`
Compiling matches v0.1.2
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/matches-0.1.2/lib.rs --crate-name matches --crate-type lib -g -C metadata=5d5580ffd528031c -C extra-filename=-5d5580ffd528031c --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --cap-lints allow`
Compiling regex-syntax v0.3.5
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.3.5/src/lib.rs --crate-name regex_syntax --crate-type lib -g -C metadata=b3fc207b97c83ddf -C extra-filename=-b3fc207b97c83ddf --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --cap-lints allow`
Compiling quine-mc_cluskey v0.2.4
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/quine-mc_cluskey-0.2.4/src/lib.rs --crate-name quine_mc_cluskey --crate-type lib -g -C metadata=84dd239bf0c39084 -C extra-filename=-84dd239bf0c39084 --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --cap-lints allow`
Compiling semver v0.2.3
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.2.3/src/lib.rs --crate-name semver --crate-type lib -g --cfg feature=\"default\" -C metadata=60d1aa0e68346373 -C extra-filename=-60d1aa0e68346373 --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --extern nom=/home/cratesfyi/clippy-0.0.92/debug/deps/libnom-24d7a34b1cbfee73.rlib --cap-lints allow`
Compiling toml v0.1.30
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/toml-0.1.30/src/lib.rs --crate-name toml --crate-type lib -g --cfg feature=\"rustc-serialize\" --cfg feature=\"default\" -C metadata=1a75b37a708f335b -C extra-filename=-1a75b37a708f335b --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --extern rustc_serialize=/home/cratesfyi/clippy-0.0.92/debug/deps/librustc_serialize-3561541d79c18212.rlib --cap-lints allow`
Compiling clippy_lints v0.0.92
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/lib.rs --crate-name clippy_lints --crate-type lib -g -C metadata=51f5571602fa7f53 -C extra-filename=-51f5571602fa7f53 --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --extern matches=/home/cratesfyi/clippy-0.0.92/debug/deps/libmatches-5d5580ffd528031c.rlib --extern unicode_normalization=/home/cratesfyi/clippy-0.0.92/debug/deps/libunicode_normalization-5de3a9c8fd8ddf4e.rlib --extern rustc_serialize=/home/cratesfyi/clippy-0.0.92/debug/deps/librustc_serialize-3561541d79c18212.rlib --extern semver=/home/cratesfyi/clippy-0.0.92/debug/deps/libsemver-60d1aa0e68346373.rlib --extern toml=/home/cratesfyi/clippy-0.0.92/debug/deps/libtoml-1a75b37a708f335b.rlib --extern regex_syntax=/home/cratesfyi/clippy-0.0.92/debug/deps/libregex_syntax-b3fc207b97c83ddf.rlib --extern quine_mc_cluskey=/home/cratesfyi/clippy-0.0.92/debug/deps/libquine_mc_cluskey-84dd239bf0c39084.rlib --cap-lints allow`
error: no method named `describe_def` found for type `std::rc::Rc<for<'a> rustc::middle::cstore::CrateStore<'a> + 'static>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/utils/mod.rs:237:51
|
237 |                         return cx.tcx.sess.cstore.describe_def(item.def_id);
|                                                   ^^^^^^^^^^^^

error: attempted access of field `def_id` on type `&rustc::middle::cstore::ChildItem`, but no field with that name was found
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/utils/mod.rs:237:64
|
237 |                         return cx.tcx.sess.cstore.describe_def(item.def_id);
|                                                                ^^^^^^^^^^^

error: attempted access of field `def_id` on type `&rustc::middle::cstore::ChildItem`, but no field with that name was found
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/utils/mod.rs:240:50
|
240 |                     items = cstore.item_children(item.def_id);
|                                                  ^^^^^^^^^^^

error: no method named `describe_def` found for type `std::rc::Rc<for<'a> rustc::middle::cstore::CrateStore<'a> + 'static>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/enum_glob_use.rs:63:80
|
63 |                             if let Some(Def::Variant(..)) = cx.tcx.sess.cstore.describe_def(child.def_id) {
|                                                                                ^^^^^^^^^^^^

error: attempted access of field `def_id` on type `&rustc::middle::cstore::ChildItem`, but no field with that name was found
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/enum_glob_use.rs:63:93
|
63 |                             if let Some(Def::Variant(..)) = cx.tcx.sess.cstore.describe_def(child.def_id) {
|                                                                                             ^^^^^^^^^^^^

error: no method named `impl_or_trait_items` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/len_zero.rs:208:16
|
208 |               .impl_or_trait_items(ty.ty_to_def_id().expect("trait impl not found"))
|                ^^^^^^^^^^^^^^^^^^^
|
note: did you mean to write `cx.tcx.impl_or_trait_items`?
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/len_zero.rs:208:16
|
208 |               .impl_or_trait_items(ty.ty_to_def_id().expect("trait impl not found"))
|                ^^^^^^^^^^^^^^^^^^^

error: no method named `impl_or_trait_items` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/len_zero.rs:198:20
|
198 |             cx.tcx.impl_or_trait_items(*imp).iter().any(|item| {
|                    ^^^^^^^^^^^^^^^^^^^
|
note: did you mean to write `cx.tcx.impl_or_trait_items`?
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/len_zero.rs:198:20
|
198 |             cx.tcx.impl_or_trait_items(*imp).iter().any(|item| {
|                    ^^^^^^^^^^^^^^^^^^^

error[E0023]: this pattern has 1 field, but the corresponding variant has 2 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/loops.rs:1046:16
|
1046 |         if let Def::Local(def_id) = path_res.base_def {
|                ^^^^^^^^^^^^^^^^^^ expected 2 fields, found 1

error[E0023]: this pattern has 1 field, but the corresponding variant has 2 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/misc.rs:446:9
|
446 |         def::Def::Local(id) | def::Def::Upvar(id, _, _) => {
|         ^^^^^^^^^^^^^^^^^^^ expected 2 fields, found 1

error[E0023]: this pattern has 3 fields, but the corresponding variant has 4 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/misc.rs:446:31
|
446 |         def::Def::Local(id) | def::Def::Upvar(id, _, _) => {
|                               ^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 fields, found 3

error: aborting due to 10 previous errors

thread 'main' panicked at 'ChainedError {
error: failed to compile `clippy v0.0.92`, intermediate artifacts can be found at `/home/cratesfyi/clippy-0.0.92`,
cause: ChainedError {
error: Could not compile `clippy_lints`.,
cause: Process didn't exit successfully: `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.92/src/lib.rs --crate-name clippy_lints --crate-type lib -g -C metadata=51f5571602fa7f53 -C extra-filename=-51f5571602fa7f53 --out-dir /home/cratesfyi/clippy-0.0.92/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.92/debug/deps --extern matches=/home/cratesfyi/clippy-0.0.92/debug/deps/libmatches-5d5580ffd528031c.rlib --extern unicode_normalization=/home/cratesfyi/clippy-0.0.92/debug/deps/libunicode_normalization-5de3a9c8fd8ddf4e.rlib --extern rustc_serialize=/home/cratesfyi/clippy-0.0.92/debug/deps/librustc_serialize-3561541d79c18212.rlib --extern semver=/home/cratesfyi/clippy-0.0.92/debug/deps/libsemver-60d1aa0e68346373.rlib --extern toml=/home/cratesfyi/clippy-0.0.92/debug/deps/libtoml-1a75b37a708f335b.rlib --extern regex_syntax=/home/cratesfyi/clippy-0.0.92/debug/deps/libregex_syntax-b3fc207b97c83ddf.rlib --extern quine_mc_cluskey=/home/cratesfyi/clippy-0.0.92/debug/deps/libquine_mc_cluskey-84dd239bf0c39084.rlib --cap-lints allow` (exit code: 101)
}
}', src/bin/cratesfyi.rs:132
note: Run with `RUST_BACKTRACE=1` for a backtrace.