clippy 0.0.62

A bunch of helpful lints to avoid common pitfalls in Rust
Build #26626 2016-08-19T14:54:44.984562+00:00
# rustc version
rustc 1.12.0-nightly (54c0dcfd6 2016-07-28)
# docs.rs version
cratesfyi 0.2.0 (5dbd676 2016-07-30)

# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading clippy v0.0.62
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.62/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps --cap-lints allow`
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.62/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps --cap-lints allow`
Compiling regex-syntax v0.3.4
Running `rustc .cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.3.4/src/lib.rs --crate-name regex_syntax --crate-type lib -g -C metadata=b24da02611351433 -C extra-filename=-b24da02611351433 --out-dir /home/cratesfyi/clippy-0.0.62/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.62/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.62/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.62/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=\"default\" --cfg feature=\"stream\" -C metadata=24d7a34b1cbfee73 -C extra-filename=-24d7a34b1cbfee73 --out-dir /home/cratesfyi/clippy-0.0.62/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.62/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.62/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps --extern nom=/home/cratesfyi/clippy-0.0.62/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.62/debug/deps --emit=dep-info,link -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps --extern rustc_serialize=/home/cratesfyi/clippy-0.0.62/debug/deps/librustc_serialize-3561541d79c18212.rlib --cap-lints allow`
Documenting clippy v0.0.62
Running `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lib.rs --crate-name clippy -o /home/cratesfyi/clippy-0.0.62/doc -L dependency=/home/cratesfyi/clippy-0.0.62/debug -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps --extern quine_mc_cluskey=/home/cratesfyi/clippy-0.0.62/debug/deps/libquine_mc_cluskey-84dd239bf0c39084.rlib --extern unicode_normalization=/home/cratesfyi/clippy-0.0.62/debug/deps/libunicode_normalization-5de3a9c8fd8ddf4e.rlib --extern semver=/home/cratesfyi/clippy-0.0.62/debug/deps/libsemver-60d1aa0e68346373.rlib --extern toml=/home/cratesfyi/clippy-0.0.62/debug/deps/libtoml-1a75b37a708f335b.rlib --extern regex_syntax=/home/cratesfyi/clippy-0.0.62/debug/deps/libregex_syntax-b24da02611351433.rlib`
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:888:1: 893:2 error: a type named `SelfKind` has already been imported in this module [E0255]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:888 use rustc::hir::*;
^~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:300:17: 300:38 error: unresolved name `infer::new_infer_ctxt` [E0425]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:300     let infcx = infer::new_infer_ctxt(cx.tcx, &cx.tcx.tables, None, ProjectionMode::Any);
^~~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:301:22: 301:53 error: unresolved name `traits::predicate_for_trait_def` [E0425]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:301     let obligation = traits::predicate_for_trait_def(cx.tcx,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:808:17: 808:38 error: unresolved name `infer::new_infer_ctxt` [E0425]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:808     let infcx = infer::new_infer_ctxt(cx.tcx, &cx.tcx.tables, Some(parameter_env), ProjectionMode::Any);
^~~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/escape.rs:58:21: 58:42 error: unresolved name `infer::new_infer_ctxt` [E0425]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/escape.rs:58         let infcx = infer::new_infer_ctxt(cx.tcx, &cx.tcx.tables, Some(param_env), ProjectionMode::Any);
^~~~~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/items_after_statements.rs:51:20: 51:35 error: failed to resolve. Use of undeclared type or module `DeclKind` [E0433]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/items_after_statements.rs:51             if let DeclKind::Local(_) = decl.node {
^~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/items_after_statements.rs:58:24: 58:38 error: failed to resolve. Use of undeclared type or module `DeclKind` [E0433]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/items_after_statements.rs:58                 if let DeclKind::Item(ref it) = decl.node {
^~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lifetimes.rs:128:13: 128:23 error: unresolved variant or struct `SelfRegion` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lifetimes.rs:128             SelfRegion(ref opt_lt, _, _) => input_visitor.record(opt_lt),
^~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lifetimes.rs:129:13: 129:25 error: unresolved variant or struct `SelfExplicit` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lifetimes.rs:129             SelfExplicit(ref ty, _) => walk_ty(&mut input_visitor, ty),
^~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lifetimes.rs:354:13: 354:23 error: unresolved variant or struct `SelfRegion` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lifetimes.rs:354             SelfRegion(Some(ref lt), _, _) => checker.visit_lifetime(lt),
^~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lifetimes.rs:355:13: 355:25 error: unresolved variant or struct `SelfExplicit` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lifetimes.rs:355             SelfExplicit(ref t, _) => walk_ty(&mut checker, t),
^~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/loops.rs:628:10: 628:15 error: type name `Ident` is undefined or not in scope [E0412]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/loops.rs:628     var: Ident, // var to look for
^~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/loops.rs:628:10: 628:15 help: you can import it into scope: `use syntax::ast::Ident;`. 
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:86:35: 86:40 error: type name `Ident` is undefined or not in scope [E0412]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:86 fn expr_eq_ident(expr: &Expr, id: Ident) -> bool {
^~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:86:35: 86:40 help: you can import it into scope: `use syntax::ast::Ident;`. 
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:109:38: 109:43 error: type name `Ident` is undefined or not in scope [E0412]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:109 fn get_arg_name(pat: &Pat) -> Option<Ident> {
^~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:109:38: 109:43 help: you can import it into scope: `use syntax::ast::Ident;`. 
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:117:51: 117:56 error: type name `Ident` is undefined or not in scope [E0412]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:117 fn only_derefs(cx: &LateContext, expr: &Expr, id: Ident) -> bool {
^~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/map_clone.rs:117:51: 117:56 help: you can import it into scope: `use syntax::ast::Ident;`. 
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:896:29: 896:42 error: type name `ExplicitSelf_` is undefined or not in scope [E0412]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:896     fn matches(&self, slf: &ExplicitSelf_, allow_value_for_ref: bool) -> bool {
^~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:896:29: 896:42 help: no candidates by the name of `ExplicitSelf_` found in your project; maybe you misspelled the name or forgot to import an external crate? 
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:898:33: 898:42 error: unresolved variant or struct `SelfValue` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:898             (&SelfKind::Value, &SelfValue(_)) |
^~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:899:31: 899:41 error: unresolved variant or struct `SelfRegion` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:899             (&SelfKind::Ref, &SelfRegion(_, Mutability::MutImmutable, _)) |
^~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:900:34: 900:44 error: unresolved variant or struct `SelfRegion` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:900             (&SelfKind::RefMut, &SelfRegion(_, Mutability::MutMutable, _)) |
^~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:901:30: 901:40 error: variable `SelfStatic` from pattern #4 is not bound in pattern #1 [E0408]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:901             (&SelfKind::No, &SelfStatic) => true,
^~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:902:31: 902:40 error: unresolved variant or struct `SelfValue` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:902             (&SelfKind::Ref, &SelfValue(_)) | (&SelfKind::RefMut, &SelfValue(_)) => allow_value_for_ref,
^~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:902:68: 902:77 error: unresolved variant or struct `SelfValue` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:902             (&SelfKind::Ref, &SelfValue(_)) | (&SelfKind::RefMut, &SelfValue(_)) => allow_value_for_ref,
^~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:903:18: 903:30 error: unresolved variant or struct `SelfExplicit` [E0531]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/methods.rs:903             (_, &SelfExplicit(ref ty, _)) => self.matches_explicit_type(ty, allow_value_for_ref),
^~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/misc_early.rs:151:21: 151:36 error: failed to resolve. Use of undeclared type or module `DeclKind` [E0433]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/misc_early.rs:151                 let DeclKind::Local(ref local) = first.node,
^~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:90:12: 90:46 note: in this expansion of if_let_chain! (defined in .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs)
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/misc_early.rs:149:13: 163:15 note: in this expansion of if_let_chain! (defined in .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs)
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/returns.rs:97:21: 97:36 error: failed to resolve. Use of undeclared type or module `DeclKind` [E0433]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/returns.rs:97                 let DeclKind::Local(ref local) = decl.node,
^~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:90:12: 90:46 note: in this expansion of if_let_chain! (defined in .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs)
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs:90:12: 90:46 note: in this expansion of if_let_chain! (defined in .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs)
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/returns.rs:92:9: 105:10 note: in this expansion of if_let_chain! (defined in .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/utils/mod.rs)
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/shadow.rs:335:5: 339:6 error: method `visit_ident` is not a member of trait `Visitor` [E0407]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/shadow.rs:335     fn visit_ident(&mut self, _: Span, ident: Ident) {
^
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/shadow.rs:335:47: 335:52 error: type name `Ident` is undefined or not in scope [E0412]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/shadow.rs:335     fn visit_ident(&mut self, _: Span, ident: Ident) {
^~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/shadow.rs:335:47: 335:52 help: you can import it into scope: `use syntax::ast::Ident;`. 
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/cyclomatic_complexity.rs:115:14: 115:30 error: wrong number of lifetime parameters: expected 3, found 1 [E0107]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/cyclomatic_complexity.rs:115     tcx: &'a ty::TyCtxt<'tcx>,
^~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/non_expressive_names.rs:69:22: 69:40 error: wrong number of lifetime parameters: expected 0, found 1 [E0107]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/non_expressive_names.rs:69 impl<'v, 'a, 'b, 'c> visit::Visitor<'v> for SimilarNamesNameVisitor<'a, 'b, 'c> {
^~~~~~~~~~~~~~~~~~
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/non_expressive_names.rs:218:18: 218:36 error: wrong number of lifetime parameters: expected 0, found 1 [E0107]
.cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/non_expressive_names.rs:218 impl<'v, 'a, 'b> visit::Visitor<'v> for SimilarNamesLocalVisitor<'a, 'b> {
^~~~~~~~~~~~~~~~~~
error: Compilation failed, aborting rustdoc 
thread 'main' panicked at 'ChainedError {
error: failed to compile `clippy v0.0.62`, intermediate artifacts can be found at `/home/cratesfyi/clippy-0.0.62`,
cause: ChainedError {
error: Could not document `clippy`.,
cause: Process didn't exit successfully: `rustdoc .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.62/src/lib.rs --crate-name clippy -o /home/cratesfyi/clippy-0.0.62/doc -L dependency=/home/cratesfyi/clippy-0.0.62/debug -L dependency=/home/cratesfyi/clippy-0.0.62/debug/deps --extern quine_mc_cluskey=/home/cratesfyi/clippy-0.0.62/debug/deps/libquine_mc_cluskey-84dd239bf0c39084.rlib --extern unicode_normalization=/home/cratesfyi/clippy-0.0.62/debug/deps/libunicode_normalization-5de3a9c8fd8ddf4e.rlib --extern semver=/home/cratesfyi/clippy-0.0.62/debug/deps/libsemver-60d1aa0e68346373.rlib --extern toml=/home/cratesfyi/clippy-0.0.62/debug/deps/libtoml-1a75b37a708f335b.rlib --extern regex_syntax=/home/cratesfyi/clippy-0.0.62/debug/deps/libregex_syntax-b24da02611351433.rlib` (exit code: 101)
}
}', src/bin/cratesfyi.rs:119
note: Run with `RUST_BACKTRACE=1` for a backtrace.