clippy 0.0.158

A bunch of helpful lints to avoid common pitfalls in Rust

Build #70040 2017-09-09 12:43:32

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.158 Fresh unicode-normalization v0.1.5 Fresh lazy_static v0.2.8 Fresh bitflags v0.9.1 Fresh either v1.1.0 Fresh getopts v0.2.15 Fresh itoa v0.3.3 Fresh matches v0.1.6 Fresh quote v0.3.15 Fresh semver-parser v0.7.0 Fresh unicode-xid v0.0.4 Fresh itertools v0.6.2 Fresh serde v1.0.12 Fresh num-traits v0.1.40 Fresh dtoa v0.4.2 Fresh quine-mc_cluskey v0.2.4 Fresh semver v0.6.0 Fresh synom v0.11.3 Fresh pulldown-cmark v0.0.15 Fresh regex-syntax v0.4.1 Fresh toml v0.4.5 Fresh serde_json v1.0.3 Fresh syn v0.11.11 Fresh serde_derive_internals v0.15.1 Fresh serde_derive v1.0.12 Compiling cargo_metadata v0.2.3 Compiling clippy_lints v0.0.158 Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.158/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=15deebda0b1d0a38 -C extra-filename=-15deebda0b1d0a38 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-b1469ab3e5f028ad.so --extern-version serde_derive=serde_derive,1.0.12 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --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=/home/cratesfyi/cratesfyi/debug/deps/libserde-623274b57aa0285a.rlib --extern-version serde=serde,1.0.12 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-d225ddfcb503bcb8.rlib --extern-version itertools=itertools,0.6.2 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-18005fa1be5dd889.rlib --extern-version lazy_static=lazy_static,0.2.8 --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-b1469ab3e5f028ad.so --extern-version serde_derive=serde_derive,1.0.12 --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-623274b57aa0285a.rlib --extern-version serde=serde,1.0.12 --cap-lints allow` error[E0412]: cannot find type `Scope` in module `region` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/src/utils/mod.rs:735:35 | 735 | 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.158/src/utils/mod.rs:758:31 | 758 | 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.158/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.158/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.158/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.158/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.158/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.158/src/utils/inspector.rs:363:44 | 363 | if let Some(crate_id) = cx.tcx.extern_mod_stmt_cnum(item.hir_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.158/src/utils/inspector.rs:364:37 | 364 | 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.158/src/utils/inspector.rs:366:65 | 366 | println!("extern crate dylib source: {:?}", src.0); | ^^^^^ error[E0609]: no field `0` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.158/src/utils/inspector.rs:369:64 | 369 | 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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/src/escape.rs:73:41 | 73 | let region_scope_tree = &cx.tcx.region_scope_tree(fn_def_id); | ^^^^^^^^^^^^^^^^^ 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.158/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.158/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[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.158/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.158/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[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.158/src/loops.rs:877:52 | 877 | let region_scope_tree = cx.tcx.region_scope_tree(parent_def_id); | ^^^^^^^^^^^^^^^^^ 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.158/src/loops.rs:1366:50 | 1366 | let extent = self.cx.tcx.region_scope_tree(parent_def_id).var_scope(hir_id.local_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.158/src/methods.rs:1089:42 | 1089 | 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.158/src/methods.rs:1089:72 | 1089 | 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.158/src/methods.rs:1122:42 | 1122 | 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.158/src/methods.rs:1122:72 | 1122 | 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.158/src/methods.rs:1305:18 | 1305 | 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.158/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.158/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[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.158/src/needless_pass_by_value.rs:78:37 | 78 | 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.158/src/needless_pass_by_value.rs:98:45 | 98 | let region_scope_tree = &cx.tcx.region_scope_tree(fn_def_id); | ^^^^^^^^^^^^^^^^^ 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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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.158/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 73 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.158/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=15deebda0b1d0a38 -C extra-filename=-15deebda0b1d0a38 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-b1469ab3e5f028ad.so --extern-version serde_derive=serde_derive,1.0.12 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --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=/home/cratesfyi/cratesfyi/debug/deps/libserde-623274b57aa0285a.rlib --extern-version serde=serde,1.0.12 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-d225ddfcb503bcb8.rlib --extern-version itertools=itertools,0.6.2 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-18005fa1be5dd889.rlib --extern-version lazy_static=lazy_static,0.2.8 --cap-lints allow` (exit code: 101) }', src/bin/cratesfyi.rs:142 note: Run with `RUST_BACKTRACE=1` for a backtrace.