clippy_lints 0.0.144

A bunch of helpful lints to avoid common pitfalls in Rust
Build #65084 2017-07-16T17:54:25.931437+00:00
# rustc version
rustc 1.19.0-dev (28a93c1f4 2017-05-31)
# docs.rs version
cratesfyi 0.4.1 (003e49d 2017-06-08)

# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading clippy_lints v0.0.144
Fresh unicode-xid v0.0.4
Fresh unicode-normalization v0.1.5
Fresh serde v1.0.10
Fresh quote v0.3.15
Fresh either v1.1.0
Fresh matches v0.1.6
Fresh regex-syntax v0.4.1
Fresh quine-mc_cluskey v0.2.4
Fresh synom v0.11.3
Fresh semver-parser v0.7.0
Compiling toml v0.4.2
Fresh lazy_static v0.2.8
Fresh itertools v0.6.0
Fresh syn v0.11.11
Fresh semver v0.6.0
Fresh serde_derive_internals v0.15.1
Fresh serde_derive v1.0.10
Running `rustc --crate-name toml .cargo/registry/src/github.com-1ecc6299db9ec823/toml-0.4.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=5dc91e94e74381ca -C extra-filename=-5dc91e94e74381ca --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-bf139fd10033b340.rlib --extern-version serde=serde,1.0.10 --cap-lints allow`
Documenting clippy_lints v0.0.144
Running `rustdoc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/lib.rs -o /home/cratesfyi/cratesfyi/doc -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-18005fa1be5dd889.rlib --extern-version lazy_static=lazy_static,0.2.8 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-ef7df43e1955bb8f.rlib --extern-version itertools=itertools,0.6.0 --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-5dc91e94e74381ca.rlib --extern-version toml=toml,0.4.2 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-cb7978517f651e53.so --extern-version serde_derive=serde_derive,1.0.10 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-bf139fd10033b340.rlib --extern-version serde=serde,1.0.10 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern quine_mc_cluskey=/home/cratesfyi/cratesfyi/debug/deps/libquine_mc_cluskey-6d8f73fdf7c11d33.rlib --extern-version quine_mc_cluskey=quine-mc_cluskey,0.2.4`
error[E0599]: no method named `node_substs` found for type `&'c rustc::ty::TypeckTables<'cc>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/consts.rs:289:42
|
289 |                 let substs = self.tables.node_substs(id);
|                                          ^^^^^^^^^^^

error: no field `type_dependent_defs` on type `&rustc::ty::TypeckTables<'_>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:185:33
|
185 |     let method_call = cx.tables.type_dependent_defs[&expr.id];
|                                 ^^^^^^^^^^^^^^^^^^^

error: no field `type_dependent_defs` on type `&rustc::ty::TypeckTables<'_>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:196:33
|
196 |     let method_call = cx.tables.type_dependent_defs[&expr.id];
|                                 ^^^^^^^^^^^^^^^^^^^

error[E0061]: this function takes 1 parameter but 2 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:270:46
|
270 |         let mut items = cstore.item_children(krate, cx.tcx.sess);
|                                              ^^^^^^^^^^^^^^^^^^ expected 1 parameter

error[E0061]: this function takes 1 parameter but 2 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:285:50
|
285 |                     items = cstore.item_children(item.def.def_id(), cx.tcx.sess);
|                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 1 parameter

error[E0061]: this function takes 5 parameters but 6 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:318:34
|
318 |         .predicate_for_trait_def(cx.param_env, traits::ObligationCause::dummy(), trait_id, 0, ty, ty_params);
|                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 parameters

error: no field `param_env` on type `&rustc::lint::LateContext<'a, 'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:318:37
|
318 |         .predicate_for_trait_def(cx.param_env, traits::ObligationCause::dummy(), trait_id, 0, ty, ty_params);
|                                     ^^^^^^^^^

error[E0061]: this function takes 2 parameters but 0 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:320:10
|
320 |         .infer_ctxt()
|          ^^^^^^^^^^ expected 2 parameters

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:340:21
|
340 |             if path.name == *method_name {
|                     ^^^^

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

error[E0061]: this function takes 2 parameters but 0 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:775:12
|
775 |     cx.tcx.infer_ctxt().enter(|infcx| infcx.can_eq(cx.param_env, a, b).is_ok())
|            ^^^^^^^^^^ expected 2 parameters

error[E0599]: no method named `can_eq` found for type `rustc::infer::InferCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:775:45
|
775 |     cx.tcx.infer_ctxt().enter(|infcx| infcx.can_eq(cx.param_env, a, b).is_ok())
|                                             ^^^^^^

error: no field `param_env` on type `&rustc::lint::LateContext<'a, 'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:775:55
|
775 |     cx.tcx.infer_ctxt().enter(|infcx| infcx.can_eq(cx.param_env, a, b).is_ok())
|                                                       ^^^^^^^^^

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:781:55
|
781 |         ty::TyFnDef(..) | ty::TyFnPtr(_) => ty.fn_sig(cx.tcx).unsafety() == Unsafety::Unsafe,
|                                                       ^^^^^^ expected 0 parameters

error: no field `param_env` on type `&rustc::lint::LateContext<'a, 'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:787:50
|
787 |     !ty.moves_by_default(cx.tcx.global_tcx(), cx.param_env, DUMMY_SP)
|                                                  ^^^^^^^^^

error[E0061]: this function takes 1 parameter but 2 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:949:15
|
949 |     ty.layout(cx.tcx, cx.param_env).ok().map(|layout| layout.size(cx.tcx).bytes())
|               ^^^^^^^^^^^^^^^^^^^^ expected 1 parameter

error: no field `param_env` on type `&rustc::lint::LateContext<'a, 'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/mod.rs:949:26
|
949 |     ty.layout(cx.tcx, cx.param_env).ok().map(|layout| layout.size(cx.tcx).bytes())
|                          ^^^^^^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/hir_utils.rs:432:38
|
432 |                 self.hash_name(&path.name);
|                                      ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/utils/inspector.rs:180:53
|
180 |             println!("{}method name: {}", ind, path.name);
|                                                     ^^^^

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/cyclomatic_complexity.rs:140:45
|
140 |                         let sig = ty.fn_sig(self.cx.tcx);
|                                             ^^^^^^^^^^^ expected 0 parameters

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/double_parens.rs:51:13
|
51 |             ExprKind::MethodCall(_, ref params) => {
|             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/entry.rs:94:14
|
94 |         path.name == "contains_key",
|              ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/entry.rs:128:18
|
128 |             path.name == "insert",
|                  ^^^^

error[E0061]: this function takes 3 parameters but 5 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/escape.rs:74:29
|
74 |         ExprUseVisitor::new(&mut v, cx.tcx, cx.param_env, region_maps, cx.tables).consume_body(body);
|                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters

error: no field `param_env` on type `&rustc::lint::LateContext<'a, 'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/escape.rs:74:48
|
74 |         ExprUseVisitor::new(&mut v, cx.tcx, cx.param_env, region_maps, cx.tables).consume_body(body);
|                                                ^^^^^^^^^

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/eta_reduction.rs:68:44
|
68 |                     let sig = fn_ty.fn_sig(cx.tcx);
|                                            ^^^^^^ expected 0 parameters

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/eval_order_dependence.rs:132:46
|
132 |                         let sig = typ.fn_sig(self.cx.tcx);
|                                              ^^^^^^^^^^^ expected 0 parameters

error: no field `type_dependent_defs` on type `&'a rustc::ty::TypeckTables<'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/functions.rs:186:45
|
186 |                 let def_id = self.cx.tables.type_dependent_defs[&expr.id].def_id();
|                                             ^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `fn_sig` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/len_zero.rs:97:24
|
97 |                 cx.tcx.fn_sig(did).inputs().skip_binder().len() == 1
|                        ^^^^^^

error[E0599]: no method named `fn_sig` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/len_zero.rs:123:24
|
123 |                 cx.tcx.fn_sig(did).inputs().skip_binder().len() == 1
|                        ^^^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/len_zero.rs:163:50
|
163 |             check_len_zero(cx, span, method_path.name, args, lit, op)
|                                                  ^^^^

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

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/loops.rs:413:55
|
413 |                 if self.loop_count < 2 && method_path.name == "next" &&
|                                                       ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/loops.rs:433:46
|
433 |                 if args.len() == 1 && method.name == "collect" && match_trait_method(cx, expr, &paths::ITERATOR) {
|                                              ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/loops.rs:673:16
|
673 |         method.name == "len",
|                ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/loops.rs:758:40
|
758 |             let method_name = &*method.name.as_str();
|                                        ^^^^

error: no field `type_dependent_defs` on type `&rustc::ty::TypeckTables<'_>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/loops.rs:765:40
|
765 |                 let def_id = cx.tables.type_dependent_defs[&arg.id].def_id();
|                                        ^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `node_substs` found for type `&rustc::ty::TypeckTables<'_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/loops.rs:766:40
|
766 |                 let substs = cx.tables.node_substs(arg.id);
|                                        ^^^^^^^^^^^

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/loops.rs:769:53
|
769 |                 let fn_arg_tys = method_type.fn_sig(cx.tcx).inputs();
|                                                     ^^^^^^ expected 0 parameters

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/map_clone.rs:32:23
|
32 |             if method.name == "map" && args.len() == 2 {
|                       ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/map_clone.rs:63:47
|
63 |                                 if clone_call.name == "clone" &&
|                                               ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/methods.rs:607:57
|
607 |                 lint_or_fun_call(cx, expr, &method_call.name.as_str(), args);
|                                                         ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/methods.rs:610:51
|
610 |                 if args.len() == 1 && method_call.name == "clone" {
|                                                   ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/methods.rs:617:44
|
617 |                             if method_call.name == method && args.len() > pos {
|                                            ^^^^

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/methods.rs:808:46
|
808 |                 check_general_case(cx, name, span, &args[0], &args[1], !or_args.is_empty(), expr.span)
|                                              ^^^^ expected struct `syntax_pos::Span`, found struct `syntax::ptr::P`
|
= note: expected type `syntax_pos::Span`
found type `syntax::ptr::P<[syntax::ptr::P<rustc::hir::Ty>]>`

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/methods.rs:985:17
|
985 |         if path.name == "iter" && may_slice(cx, cx.tables.expr_ty(&args[0])) {
|                 ^^^^

error: no field `type_dependent_defs` on type `&'a rustc::ty::TypeckTables<'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/mut_reference.rs:48:40
|
48 |                 let def_id = cx.tables.type_dependent_defs[&e.id].def_id();
|                                        ^^^^^^^^^^^^^^^^^^^

error[E0599]: no method named `node_substs` found for type `&'a rustc::ty::TypeckTables<'tcx>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/mut_reference.rs:49:40
|
49 |                 let substs = cx.tables.node_substs(e.id);
|                                        ^^^^^^^^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/mut_reference.rs:51:67
|
51 |                 check_arguments(cx, arguments, method_type, &path.name.as_str())
|                                                                   ^^^^

error[E0061]: this function takes 0 parameters but 1 parameter was supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/mut_reference.rs:61:53
|
61 |             let parameters = type_definition.fn_sig(cx.tcx).skip_binder().inputs();
|                                                     ^^^^^^ expected 0 parameters

error[E0599]: no method named `expr_adjustments` found for type `&'a rustc::ty::TypeckTables<'tcx>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/needless_borrow.rs:45:39
|
45 |                 for adj3 in cx.tables.expr_adjustments(e).windows(3) {
|                                       ^^^^^^^^^^^^^^^^

error[E0599]: no associated item named `Deref` found for type `rustc::ty::adjustment::Adjust<'_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/needless_borrow.rs:47:44
|
47 |                         Adjustment { kind: Adjust::Deref(_), .. },
|                                            ^^^^^^^^^^^^^^^^

error[E0599]: no associated item named `Deref` found for type `rustc::ty::adjustment::Adjust<'_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/needless_borrow.rs:48:44
|
48 |                         Adjustment { kind: Adjust::Deref(_), .. },
|                                            ^^^^^^^^^^^^^^^^

error[E0599]: no associated item named `Borrow` found for type `rustc::ty::adjustment::Adjust<'_>` in the current scope
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/needless_borrow.rs:49:44
|
49 |                         Adjustment { kind: Adjust::Borrow(_), .. }
|                                            ^^^^^^^^^^^^^^^^^

error: no field `param_env` on type `&rustc::lint::LateContext<'a, 'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/needless_pass_by_value.rs:85:53
|
85 |             traits::elaborate_predicates(cx.tcx, cx.param_env.caller_bounds.to_vec())
|                                                     ^^^^^^^^^

error[E0061]: this function takes 3 parameters but 5 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/needless_pass_by_value.rs:94:38
|
94 |             euv::ExprUseVisitor::new(&mut ctx, cx.tcx, cx.param_env, region_maps, cx.tables).consume_body(body);
|                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters

error: no field `param_env` on type `&rustc::lint::LateContext<'a, 'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/needless_pass_by_value.rs:94:59
|
94 |             euv::ExprUseVisitor::new(&mut ctx, cx.tcx, cx.param_env, region_maps, cx.tables).consume_body(body);
|                                                           ^^^^^^^^^

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

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/open_options.rs:39:21
|
39 |             if path.name == "open" && match_type(cx, obj_ty, &paths::OPEN_OPTIONS) {
|                     ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/open_options.rs:84:26
|
84 |             match &*path.name.as_str() {
|                          ^^^^

error[E0023]: this pattern has 2 fields, but the corresponding tuple variant has 3 fields
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/precedence.rs:78:20
|
78 |             if let ExprKind::MethodCall(_, ref args) = rhs.node {
|                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 fields, found 2

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

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/ranges.rs:52:29
|
52 |             let name = path.name.as_str();
|                             ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/ranges.rs:72:31
|
72 |                     iter_path.name == "iter",
|                               ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/ranges.rs:78:30
|
78 |                     len_path.name == "len" && len_args.len() == 1,
|                              ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/strings.rs:146:21
|
146 |             if path.name == "as_bytes" {
|                     ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/unused_io_amount.rs:59:30
|
59 |                 match &*path.name.as_str() {
|                              ^^^^

error: no field `name` on type `&syntax::codemap::Spanned<syntax::ast::Symbol>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.144/src/unused_io_amount.rs:74:29
|
74 |         let symbol = &*path.name.as_str();
|                             ^^^^

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.144/src/lib.rs -o /home/cratesfyi/cratesfyi/doc -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-18005fa1be5dd889.rlib --extern-version lazy_static=lazy_static,0.2.8 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-ef7df43e1955bb8f.rlib --extern-version itertools=itertools,0.6.0 --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-5dc91e94e74381ca.rlib --extern-version toml=toml,0.4.2 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-cb7978517f651e53.so --extern-version serde_derive=serde_derive,1.0.10 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-bf139fd10033b340.rlib --extern-version serde=serde,1.0.10 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern quine_mc_cluskey=/home/cratesfyi/cratesfyi/debug/deps/libquine_mc_cluskey-6d8f73fdf7c11d33.rlib --extern-version quine_mc_cluskey=quine-mc_cluskey,0.2.4` (exit code: 101)
}', src/bin/cratesfyi.rs:142
note: Run with `RUST_BACKTRACE=1` for a backtrace.