clippy 0.0.159

A bunch of helpful lints to avoid common pitfalls in Rust

Build #70281 2017-09-12 12:44:40

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.21.0-dev (d835dc82b 2017-08-29)

# 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 v0.0.159 Fresh unicode-normalization v0.1.5 Fresh lazy_static v0.2.8 Fresh regex-syntax v0.4.1 Fresh getopts v0.2.15 Fresh unicode-xid v0.0.4 Fresh either v1.1.0 Fresh quine-mc_cluskey v0.2.4 Fresh quote v0.3.15 Fresh num-traits v0.1.40 Fresh bitflags v0.9.1 Fresh synom v0.11.3 Fresh serde v1.0.14 Fresh itertools v0.6.2 Fresh itoa v0.3.3 Fresh dtoa v0.4.2 Fresh semver-parser v0.7.0 Fresh matches v0.1.6 Fresh syn v0.11.11 Fresh toml v0.4.5 Fresh serde_json v1.0.3 Fresh semver v0.6.0 Fresh pulldown-cmark v0.0.15 Fresh serde_derive_internals v0.16.0 Fresh serde_derive v1.0.14 Compiling clippy_lints v0.0.159 Compiling cargo_metadata v0.2.3 Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=75b745b4be451eb7 -C extra-filename=-75b745b4be451eb7 --out-dir /home/cratesfyi/cratesfyi/debug/deps -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 matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-52db0638aa6d27c3.rlib --extern-version serde=serde,1.0.14 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-d225ddfcb503bcb8.rlib --extern-version itertools=itertools,0.6.2 --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 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-741d235fd5b04a62.so --extern-version serde_derive=serde_derive,1.0.14 --cap-lints allow` Running `rustc --crate-name cargo_metadata .cargo/registry/src/github.com-1ecc6299db9ec823/cargo_metadata-0.2.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=f22a3fe0f333caef -C extra-filename=-f22a3fe0f333caef --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-741d235fd5b04a62.so --extern-version serde_derive=serde_derive,1.0.14 --extern serde_json=/home/cratesfyi/cratesfyi/debug/deps/libserde_json-361449ff84e77035.rlib --extern-version serde_json=serde_json,1.0.3 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-52db0638aa6d27c3.rlib --extern-version serde=serde,1.0.14 --cap-lints allow` error[E0412]: cannot find type `Scope` in module `region` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:1327:43 | 1327 | indexed: HashMap<Name, Option<region::Scope>>, | ^^^^^ not found in `region` error[E0599]: no method named `extern_const_body` found for type `rustc::ty::TyCtxt<'c, 'cc, 'cc>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/consts.rs:300:34 | 300 | self.tcx.extern_const_body(def_id) | ^^^^^^^^^^^^^^^^^ error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:102:9 | 102 | rhs.ctxt() != lhs.ctxt() | ^^^^ field, not a method | = help: did you mean to write `rhs.ctxt` instead of `rhs.ctxt(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:102:23 | 102 | rhs.ctxt() != lhs.ctxt() | ^^^^ field, not a method | = help: did you mean to write `lhs.ctxt` instead of `lhs.ctxt(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:115:10 | 115 | span.ctxt().outer().expn_info().map_or(false, |info| { | ^^^^ field, not a method | = help: did you mean to write `span.ctxt` instead of `span.ctxt(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:148:10 | 148 | span.ctxt() | ^^^^ field, not a method | = help: did you mean to write `span.ctxt` instead of `span.ctxt(...)`? error[E0599]: no method named `crates` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:282:25 | 282 | let crates = cx.tcx.crates(); | ^^^^^^ error[E0599]: no method named `item_children` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:291:32 | 291 | let mut items = cx.tcx.item_children(krate); | ^^^^^^^^^^^^^ error[E0609]: no field `ident` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:301:25 | 301 | if item.ident.name == *segment { | ^^^^^ error[E0599]: no method named `item_children` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:306:36 | 306 | items = cx.tcx.item_children(item.def.def_id()); | ^^^^^^^^^^^^^ error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:744:35 | 744 | let span_name_span = span.ctxt() | ^^^^ field, not a method | = help: did you mean to write `span.ctxt` instead of `span.ctxt(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/mod.rs:767:31 | 767 | let span_name_span = span.ctxt() | ^^^^ field, not a method | = help: did you mean to write `span.ctxt` instead of `span.ctxt(...)`? error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/sugg.rs:412:55 | 412 | let lo = cx.sess().codemap().lookup_char_pos(span.lo()); | ^^ field, not a method | = help: did you mean to write `span.lo` instead of `span.lo(...)`? error[E0599]: no method named `with_hi` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/sugg.rs:462:29 | 462 | let span = item.with_hi(item.lo()); | ^^^^^^^ error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/sugg.rs:462:42 | 462 | let span = item.with_hi(item.lo()); | ^^ field, not a method | = help: did you mean to write `item.lo` instead of `item.lo(...)`? error[E0599]: no method named `with_hi` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/sugg.rs:470:29 | 470 | let span = item.with_hi(item.lo()); | ^^^^^^^ error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/sugg.rs:470:42 | 470 | let span = item.with_hi(item.lo()); | ^^ field, not a method | = help: did you mean to write `item.lo` instead of `item.lo(...)`? error[E0599]: no method named `extern_mod_stmt_cnum` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/inspector.rs:364:44 | 364 | if let Some(crate_id) = cx.tcx.extern_mod_stmt_cnum(def_id) { | ^^^^^^^^^^^^^^^^^^^^ error[E0599]: no method named `used_crate_source` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/inspector.rs:365:37 | 365 | let source = cx.tcx.used_crate_source(crate_id); | ^^^^^^^^^^^^^^^^^ error[E0609]: no field `0` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/inspector.rs:367:65 | 367 | println!("extern crate dylib source: {:?}", src.0); | ^^^^^ error[E0609]: no field `0` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/inspector.rs:370:64 | 370 | println!("extern crate rlib source: {:?}", src.0); | ^^^^^ error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/utils/internal_lints.rs:143:18 | 143 | .ctxt() | ^^^^ field, not a method | = help: did you mean to write `lint_span.ctxt` instead of `lint_span.ctxt(...)`? error[E0599]: no method named `extern_const_body` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/bit_mask.rs:310:32 | 310 | cx.tcx.extern_const_body(def_id) | ^^^^^^^^^^^^^^^^^ error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/collapsible_if.rs:127:22 | 127 | if expr.span.ctxt() != inner.span.ctxt() { | ^^^^ field, not a method | = help: did you mean to write `expr.span.ctxt` instead of `expr.span.ctxt(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/collapsible_if.rs:127:43 | 127 | if expr.span.ctxt() != inner.span.ctxt() { | ^^^^ field, not a method | = help: did you mean to write `inner.span.ctxt` instead of `inner.span.ctxt(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/derive.rs:96:45 | 96 | let Some(peq_trait_def_id) = cx.tcx.lang_items().eq_trait() | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `with_lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:99:38 | 99 | (doc.len(), span.with_lo(span.lo() + BytePos(prefix.len() as u32))), | ^^^^^^^ error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:99:51 | 99 | (doc.len(), span.with_lo(span.lo() + BytePos(prefix.len() as u32))), | ^^ field, not a method | = help: did you mean to write `span.lo` instead of `span.lo(...)`? error[E0599]: no method named `with_lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:114:46 | 114 | sizes.push((line.len() + 1, span.with_lo(span.lo() + BytePos(offset as u32)))); | ^^^^^^^ error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:114:59 | 114 | sizes.push((line.len() + 1, span.with_lo(span.lo() + BytePos(offset as u32)))); | ^^ field, not a method | = help: did you mean to write `span.lo` instead of `span.lo(...)`? error[E0599]: no method named `with_lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:217:37 | 217 | let span = span.with_lo(span.lo() + BytePos::from_usize(offset - begin)); | ^^^^^^^ error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:217:50 | 217 | let span = span.with_lo(span.lo() + BytePos::from_usize(offset - begin)); | ^^ field, not a method | = help: did you mean to write `span.lo` instead of `span.lo(...)`? error[E0599]: no function or associated item named `new` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:239:20 | 239 | let span = Span::new( | ^^^^^^^^^ error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:240:18 | 240 | span.lo() + BytePos::from_usize(offset), | ^^ field, not a method | = help: did you mean to write `span.lo` instead of `span.lo(...)`? error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:241:18 | 241 | span.lo() + BytePos::from_usize(offset + word.len()), | ^^ field, not a method | = help: did you mean to write `span.lo` instead of `span.lo(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/doc.rs:242:18 | 242 | span.ctxt(), | ^^^^ field, not a method | = help: did you mean to write `span.ctxt` instead of `span.ctxt(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:66:34 | 66 | BiAdd => (cx.tcx.lang_items().add_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:67:34 | 67 | BiSub => (cx.tcx.lang_items().sub_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:68:34 | 68 | BiMul => (cx.tcx.lang_items().mul_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:69:34 | 69 | BiDiv => (cx.tcx.lang_items().div_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:70:34 | 70 | BiRem => (cx.tcx.lang_items().rem_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:73:37 | 73 | BiBitXor => (cx.tcx.lang_items().bitxor_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:74:37 | 74 | BiBitAnd => (cx.tcx.lang_items().bitand_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:75:36 | 75 | BiBitOr => (cx.tcx.lang_items().bitor_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:76:34 | 76 | BiShl => (cx.tcx.lang_items().shl_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:77:34 | 77 | BiShr => (cx.tcx.lang_items().shr_trait(), false), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:78:40 | 78 | BiNe | BiEq => (cx.tcx.lang_items().eq_trait(), true), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eq_op.rs:79:54 | 79 | BiLt | BiLe | BiGe | BiGt => (cx.tcx.lang_items().ord_trait(), true), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `region_scope_tree` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/escape.rs:73:41 | 73 | let region_scope_tree = &cx.tcx.region_scope_tree(fn_def_id); | ^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eval_order_dependence.rs:71:38 | 71 | var: var, | ^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/eval_order_dependence.rs:305:33 | 305 | local_id == self.var, | ^^^^^^^^ expected struct `rustc::hir::def_id::DefId`, found struct `syntax::ast::NodeId` | = note: expected type `rustc::hir::def_id::DefId` found type `syntax::ast::NodeId` error[E0599]: no method named `with_lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/formatting.rs:173:50 | 173 | let lint_span = lhs.span.with_lo(lhs.span.hi()); | ^^^^^^^ error[E0599]: no method named `hi` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/formatting.rs:173:67 | 173 | let lint_span = lhs.span.with_lo(lhs.span.hi()); | ^^ field, not a method | = help: did you mean to write `lhs.span.hi` instead of `lhs.span.hi(...)`? error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/functions.rs:172:14 | 172 | Some(id) | ^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/functions.rs:221:39 | 221 | if self.ptrs.contains(&id) { | ^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `&syntax::ast::NodeId` found type `&rustc::hir::def_id::DefId` error[E0599]: no method named `with_hi` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/if_let_redundant_pattern_matching.rs:74:46 | 74 | let span = expr.span.with_hi(op.span.hi()); | ^^^^^^^ error[E0599]: no method named `hi` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/if_let_redundant_pattern_matching.rs:74:62 | 74 | let span = expr.span.with_hi(op.span.hi()); | ^^ field, not a method | = help: did you mean to write `op.span.hi` instead of `op.span.hi(...)`? error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/let_if_seq.rs:73:35 | 73 | !used_in_expr(cx, canonical_id, cond), | ^^^^^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/let_if_seq.rs:75:52 | 75 | let Some(value) = check_assign(cx, canonical_id, &*then), | ^^^^^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/let_if_seq.rs:76:35 | 76 | !used_in_expr(cx, canonical_id, value), | ^^^^^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/let_if_seq.rs:82:65 | 82 | if let Some(default) = check_assign(cx, canonical_id, else_) { | ^^^^^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/let_if_seq.rs:144:24 | 144 | self.id == local_id, | ^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/let_if_seq.rs:168:17 | 168 | decl == local_id, | ^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:603:21 | 603 | local_id == var | ^^^ expected struct `rustc::hir::def_id::DefId`, found struct `syntax::ast::NodeId` | = note: expected type `rustc::hir::def_id::DefId` found type `syntax::ast::NodeId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:805:67 | 805 | let manual_copies = get_indexed_assignments(cx, body, canonical_id); | ^^^^^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:858:22 | 858 | var: canonical_id, | ^^^^^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0599]: no method named `region_scope_tree` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:877:52 | 877 | let region_scope_tree = cx.tcx.region_scope_tree(parent_def_id); | ^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:1360:69 | 1360 | let hir_id = self.cx.tcx.hir.node_to_hir_id(node_id); | ^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0599]: no method named `region_scope_tree` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:1364:50 | 1364 | let extent = self.cx.tcx.region_scope_tree(parent_def_id).var_scope(hir_id.local_id); | ^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:1384:28 | 1384 | if local_id == self.var { | ^^^^^^^^ expected struct `rustc::hir::def_id::DefId`, found struct `syntax::ast::NodeId` | = note: expected type `rustc::hir::def_id::DefId` found type `syntax::ast::NodeId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/loops.rs:1675:25 | 1675 | return Some(node_id); | ^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/methods.rs:1137:42 | 1137 | let same_span = map_args[1].span.ctxt() == unwrap_args[1].span.ctxt(); | ^^^^ field, not a method | = help: did you mean to write `map_args[1].span.ctxt` instead of `map_args[1].span.ctxt(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/methods.rs:1137:72 | 1137 | let same_span = map_args[1].span.ctxt() == unwrap_args[1].span.ctxt(); | ^^^^ field, not a method | = help: did you mean to write `unwrap_args[1].span.ctxt` instead of `unwrap_args[1].span.ctxt(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/methods.rs:1170:42 | 1170 | let same_span = map_args[1].span.ctxt() == unwrap_args[1].span.ctxt(); | ^^^^ field, not a method | = help: did you mean to write `map_args[1].span.ctxt` instead of `map_args[1].span.ctxt(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/methods.rs:1170:72 | 1170 | let same_span = map_args[1].span.ctxt() == unwrap_args[1].span.ctxt(); | ^^^^ field, not a method | = help: did you mean to write `unwrap_args[1].span.ctxt` instead of `unwrap_args[1].span.ctxt(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'b, 'a, 'a>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/methods.rs:1353:18 | 1353 | match cx.tcx.lang_items().debug_trait() { | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/misc.rs:500:44 | 500 | let partial_eq_trait_id = match cx.tcx.lang_items().eq_trait() { | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/misc.rs:568:10 | 568 | .ctxt() | ^^^^ field, not a method | = help: did you mean to write `expr.span.ctxt` instead of `expr.span.ctxt(...)`? error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/misc.rs:578:39 | 578 | !in_macro(cx.tcx.hir.span(id)) | ^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `syntax::ast::NodeId` found type `rustc::hir::def_id::DefId` error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/needless_pass_by_value.rs:77:37 | 77 | let fn_trait = need!(cx.tcx.lang_items().fn_trait()); | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `region_scope_tree` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/needless_pass_by_value.rs:97:45 | 97 | let region_scope_tree = &cx.tcx.region_scope_tree(fn_def_id); | ^^^^^^^^^^^^^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/needless_pass_by_value.rs:132:38 | 132 | !moved_vars.contains(&canonical_id), | ^^^^^^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `&syntax::ast::NodeId` found type `&rustc::hir::def_id::DefId` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/needless_pass_by_value.rs:141:59 | 141 | let deref_span = spans_need_deref.get(&canonical_id); | ^^^^^^^^^^^^^ expected struct `syntax::ast::NodeId`, found struct `rustc::hir::def_id::DefId` | = note: expected type `&syntax::ast::NodeId` found type `&rustc::hir::def_id::DefId` error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/partialeq_ne_impl.rs:43:41 | 43 | let Some(eq_trait) = cx.tcx.lang_items().eq_trait(), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no function or associated item named `new` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/regex.rs:142:13 | 142 | Span::new(base.lo() + BytePos(l as u32), base.lo() + BytePos(h as u32), base.ctxt()) | ^^^^^^^^^ error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/regex.rs:142:28 | 142 | Span::new(base.lo() + BytePos(l as u32), base.lo() + BytePos(h as u32), base.ctxt()) | ^^ field, not a method | = help: did you mean to write `base.lo` instead of `base.lo(...)`? error[E0599]: no method named `lo` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/regex.rs:142:59 | 142 | Span::new(base.lo() + BytePos(l as u32), base.lo() + BytePos(h as u32), base.ctxt()) | ^^ field, not a method | = help: did you mean to write `base.lo` instead of `base.lo(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/regex.rs:142:90 | 142 | Span::new(base.lo() + BytePos(l as u32), base.lo() + BytePos(h as u32), base.ctxt()) | ^^^^ field, not a method | = help: did you mean to write `base.ctxt` instead of `base.ctxt(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'a, 'tcx, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/should_assert_eq.rs:43:44 | 43 | let Some(debug_trait) = cx.tcx.lang_items().debug_trait(), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/types.rs:154:43 | 154 | if Some(def_id) == cx.tcx.lang_items().owned_box() { | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `lang_items` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/types.rs:212:48 | 212 | Some(def_id) == cx.tcx.lang_items().owned_box(), | ^^^^^^^^^^ field, not a method | = help: did you mean to write `cx.tcx.lang_items` instead of `cx.tcx.lang_items(...)`? error[E0599]: no method named `ctxt` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/vec.rs:54:33 | 54 | let span = arg.span.ctxt().outer().expn_info().map(|info| info.call_site).expect("unable to get call_site"); | ^^^^ field, not a method | = help: did you mean to write `arg.span.ctxt` instead of `arg.span.ctxt(...)`? error: aborting due to 92 previous errors thread 'main' panicked at 'ChainedError { error: Could not compile `clippy_lints`., cause: process didn't exit successfully: `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.159/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=75b745b4be451eb7 -C extra-filename=-75b745b4be451eb7 --out-dir /home/cratesfyi/cratesfyi/debug/deps -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 matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-52db0638aa6d27c3.rlib --extern-version serde=serde,1.0.14 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-d225ddfcb503bcb8.rlib --extern-version itertools=itertools,0.6.2 --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 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-741d235fd5b04a62.so --extern-version serde_derive=serde_derive,1.0.14 --cap-lints allow` (exit code: 101) }', src/bin/cratesfyi.rs:142 note: Run with `RUST_BACKTRACE=1` for a backtrace.