clippy 0.0.162

A bunch of helpful lints to avoid common pitfalls in Rust

Build #70926 2017-09-19 18:49:46

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.162 Fresh serde v1.0.15 Fresh itoa v0.3.4 Fresh semver-parser v0.7.0 Fresh bitflags v0.9.1 Fresh regex-syntax v0.4.1 Fresh lazy_static v0.2.8 Fresh either v1.1.0 Fresh unicode-xid v0.0.4 Fresh quote v0.3.15 Fresh dtoa v0.4.2 Fresh quine-mc_cluskey v0.2.4 Fresh getopts v0.2.15 Fresh semver v0.6.0 Fresh synom v0.11.3 Fresh itertools v0.6.2 Fresh toml v0.4.5 Fresh matches v0.1.6 Fresh num-traits v0.1.40 Fresh unicode-normalization v0.1.5 Fresh syn v0.11.11 Fresh serde_json v1.0.3 Fresh pulldown-cmark v0.0.15 Fresh serde_derive_internals v0.16.0 Fresh serde_derive v1.0.15 Compiling cargo_metadata v0.2.3 Compiling clippy_lints v0.0.162 Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=e2f9966c58ce2b91 -C extra-filename=-e2f9966c58ce2b91 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --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 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 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 itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-d225ddfcb503bcb8.rlib --extern-version itertools=itertools,0.6.2 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-931f0dcef843f60e.so --extern-version serde_derive=serde_derive,1.0.15 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-18005fa1be5dd889.rlib --extern-version lazy_static=lazy_static,0.2.8 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-945a6a37fb92248d.rlib --extern-version serde=serde,1.0.15 --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-931f0dcef843f60e.so --extern-version serde_derive=serde_derive,1.0.15 --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-945a6a37fb92248d.rlib --extern-version serde=serde,1.0.15 --cap-lints allow` error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/utils/mod.rs:327:29 | 327 | pub fn const_to_u64(c: &ty::Const) -> u64 { | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/array_indexing.rs:117:32 | 117 | start: &Option<Option<&ty::Const>>, | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/array_indexing.rs:118:30 | 118 | end: &Option<Option<&ty::Const>>, | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/array_indexing.rs:123:24 | 123 | Some(Some(&ty::Const { val: ConstVal::Integral(x), .. })) => x, | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 51 | #[derive(use rustc::hir::AssociatedItemKind::Const; | 51 | #[derive(use rustc::hir::Constness::Const; | 51 | #[derive(use rustc::hir::ImplItemKind::Const; | 51 | #[derive(use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/array_indexing.rs:129:24 | 129 | Some(Some(&ty::Const { val: ConstVal::Integral(x), .. })) => if limits == RangeLimits::Closed { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 51 | #[derive(use rustc::hir::AssociatedItemKind::Const; | 51 | #[derive(use rustc::hir::Constness::Const; | 51 | #[derive(use rustc::hir::ImplItemKind::Const; | 51 | #[derive(use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/enum_clike.rs:58:33 | 58 | Ok(&ty::Const { val: ConstVal::Integral(Usize(Us64(i))), .. }) => u64::from(i as u32) != i, | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 35 | use rustc::hir::AssociatedItemKind::Const; | 35 | use rustc::hir::Constness::Const; | 35 | use rustc::hir::ImplItemKind::Const; | 35 | use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/enum_clike.rs:59:33 | 59 | Ok(&ty::Const { val: ConstVal::Integral(Isize(Is64(i))), .. }) => i64::from(i as i32) != i, | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 35 | use rustc::hir::AssociatedItemKind::Const; | 35 | use rustc::hir::Constness::Const; | 35 | use rustc::hir::ImplItemKind::Const; | 35 | use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/loops.rs:1029:27 | 1029 | (&ty::Const { val: ConstVal::Integral(start_idx), .. }, | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 331 | #[derive(use rustc::hir::AssociatedItemKind::Const; | 331 | #[derive(use rustc::hir::Constness::Const; | 331 | #[derive(use rustc::hir::ImplItemKind::Const; | 331 | #[derive(use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/loops.rs:1030:27 | 1030 | &ty::Const { val: ConstVal::Integral(end_idx), .. }) => { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 331 | #[derive(use rustc::hir::AssociatedItemKind::Const; | 331 | #[derive(use rustc::hir::Constness::Const; | 331 | #[derive(use rustc::hir::ImplItemKind::Const; | 331 | #[derive(use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0412]: cannot find type `Scope` in module `region` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/loops.rs:1358:43 | 1358 | indexed: HashMap<Name, Option<region::Scope>>, | ^^^^^ not found in `region` error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/matches.rs:414:114 | 414 | fn all_ranges<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, arms: &'tcx [Arm], id: NodeId) -> Vec<SpannedRange<&'tcx ty::Const<'tcx>>> { | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/matches.rs:467:44 | 467 | fn type_ranges(ranges: &[SpannedRange<&ty::Const>]) -> TypedRanges { | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/matches.rs:471:19 | 471 | (&ty::Const { val: ConstVal::Integral(start), .. }, Bound::Included(&ty::Const { val: ConstVal::Integral(end), .. })) => Some(SpannedRange { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 149 | use rustc::hir::AssociatedItemKind::Const; | 149 | use rustc::hir::Constness::Const; | 149 | use rustc::hir::ImplItemKind::Const; | 149 | use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/matches.rs:471:86 | 471 | (&ty::Const { val: ConstVal::Integral(start), .. }, Bound::Included(&ty::Const { val: ConstVal::Integral(end), .. })) => Some(SpannedRange { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 149 | use rustc::hir::AssociatedItemKind::Const; | 149 | use rustc::hir::Constness::Const; | 149 | use rustc::hir::ImplItemKind::Const; | 149 | use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/matches.rs:475:19 | 475 | (&ty::Const { val: ConstVal::Integral(start), .. }, Bound::Excluded(&ty::Const { val: ConstVal::Integral(end), .. })) => Some(SpannedRange { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 149 | use rustc::hir::AssociatedItemKind::Const; | 149 | use rustc::hir::Constness::Const; | 149 | use rustc::hir::ImplItemKind::Const; | 149 | use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/matches.rs:475:86 | 475 | (&ty::Const { val: ConstVal::Integral(start), .. }, Bound::Excluded(&ty::Const { val: ConstVal::Integral(end), .. })) => Some(SpannedRange { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 149 | use rustc::hir::AssociatedItemKind::Const; | 149 | use rustc::hir::Constness::Const; | 149 | use rustc::hir::ImplItemKind::Const; | 149 | use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/matches.rs:479:19 | 479 | (&ty::Const { val: ConstVal::Integral(start), .. }, Bound::Unbounded) => Some(SpannedRange { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 149 | use rustc::hir::AssociatedItemKind::Const; | 149 | use rustc::hir::Constness::Const; | 149 | use rustc::hir::ImplItemKind::Const; | 149 | use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/methods.rs:1432:20 | 1432 | if let Ok(&ty::Const { val: ConstVal::Str(r), .. }) = ConstContext::new(cx.tcx, cx.param_env.and(substs), cx.tables).eval(arg) { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 20 | #[derive(use rustc::hir::AssociatedItemKind::Const; | 20 | #[derive(use rustc::hir::Constness::Const; | 20 | #[derive(use rustc::hir::ImplItemKind::Const; | 20 | #[derive(use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/misc.rs:427:20 | 427 | if let Ok(&ty::Const { val: ConstVal::Float(val), .. }) = res { | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 203 | #[derive(use rustc::hir::AssociatedItemKind::Const; | 203 | #[derive(use rustc::hir::Constness::Const; | 203 | #[derive(use rustc::hir::ImplItemKind::Const; | 203 | #[derive(use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0422]: cannot find struct, variant or union type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/regex.rs:152:17 | 152 | Ok(&ty::Const { val: ConstVal::Str(r), .. }) => Some(r), | ^^^^^ not found in `ty` | help: possible candidates are found in other modules, you can import them into scope | 71 | #[derive(use rustc::hir::AssociatedItemKind::Const; | 71 | #[derive(use rustc::hir::Constness::Const; | 71 | #[derive(use rustc::hir::ImplItemKind::Const; | 71 | #[derive(use rustc::hir::TraitItemKind::Const; | and 8 other candidates error[E0609]: no field `isize_ty` on type `rustc::session::config::Config` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/consts.rs:179:95 | 179 | Constant::Int(ConstInt::new_signed_truncating(n as i128, ity, tcx.sess.target.isize_ty)) | ^^^^^^^^ unknown field | = note: available fields are: `target`, `int_type`, `uint_type` error[E0609]: no field `usize_ty` on type `rustc::session::config::Config` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/consts.rs:182:97 | 182 | Constant::Int(ConstInt::new_unsigned_truncating(n as u128, uty, tcx.sess.target.usize_ty)) | ^^^^^^^^ unknown field | = note: available fields are: `target`, `int_type`, `uint_type` 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.162/src/consts.rs:301:34 | 301 | self.tcx.extern_const_body(def_id).body | ^^^^^^^^^^^^^^^^^ 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.162/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.162/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.162/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.162/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.162/src/utils/mod.rs:293:25 | 293 | 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.162/src/utils/mod.rs:302:32 | 302 | 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.162/src/utils/mod.rs:312:25 | 312 | 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.162/src/utils/mod.rs:317:36 | 317 | 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.162/src/utils/mod.rs:769:35 | 769 | 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.162/src/utils/mod.rs:792:31 | 792 | 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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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[E0609]: no field `usize_ty` on type `rustc::session::config::Config` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/array_indexing.rs:67:74 | 67 | ConstUsize::new(const_to_u64(size), cx.sess().target.usize_ty).expect("array size is invalid"), | ^^^^^^^^ unknown field | = note: available fields are: `target`, `int_type`, `uint_type` error[E0609]: no field `val` on type `rustc::middle::const_val::ConstVal<'_>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/array_indexing.rs:76:74 | 76 | if let ConstVal::Integral(const_index) = const_index.val { | ^^^ 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.162/src/bit_mask.rs:310:32 | 310 | cx.tcx.extern_const_body(def_id).body | ^^^^^^^^^^^^^^^^^ 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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/enum_clike.rs:58:28 | 58 | Ok(&ty::Const { val: ConstVal::Integral(Usize(Us64(i))), .. }) => u64::from(i as u32) != i, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::middle::const_val::ConstVal`, found reference | = note: expected type `rustc::middle::const_val::ConstVal<'_>` found type `&_` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/enum_clike.rs:59:28 | 59 | Ok(&ty::Const { val: ConstVal::Integral(Isize(Is64(i))), .. }) => i64::from(i as i32) != i, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::middle::const_val::ConstVal`, found reference | = note: expected type `rustc::middle::const_val::ConstVal<'_>` found type `&_` 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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/src/loops.rs:618:21 | 618 | 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.162/src/loops.rs:844:67 | 844 | 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.162/src/loops.rs:897:22 | 897 | 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.162/src/loops.rs:914:52 | 914 | 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.162/src/loops.rs:1029:22 | 1029 | (&ty::Const { val: ConstVal::Integral(start_idx), .. }, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::middle::const_val::ConstVal`, found reference | = note: expected type `rustc::middle::const_val::ConstVal<'_>` found type `&_` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/loops.rs:1030:22 | 1030 | &ty::Const { val: ConstVal::Integral(end_idx), .. }) => { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::middle::const_val::ConstVal`, found reference | = note: expected type `rustc::middle::const_val::ConstVal<'_>` found type `&_` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/loops.rs:1391:69 | 1391 | 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.162/src/loops.rs:1395:50 | 1395 | 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.162/src/loops.rs:1415:28 | 1415 | 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.162/src/loops.rs:1710:25 | 1710 | 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.162/src/methods.rs:1162:42 | 1162 | 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.162/src/methods.rs:1162:72 | 1162 | 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.162/src/methods.rs:1195:42 | 1195 | 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.162/src/methods.rs:1195:72 | 1195 | 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[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/methods.rs:1432:15 | 1432 | if let Ok(&ty::Const { val: ConstVal::Str(r), .. }) = ConstContext::new(cx.tcx, cx.param_env.and(substs), cx.tables).eval(arg) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::middle::const_val::ConstVal`, found reference | = note: expected type `rustc::middle::const_val::ConstVal<'_>` found type `&_` 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.162/src/methods.rs:1461:18 | 1461 | 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[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/misc.rs:427:15 | 427 | if let Ok(&ty::Const { val: ConstVal::Float(val), .. }) = res { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::middle::const_val::ConstVal`, found reference | = note: expected type `rustc::middle::const_val::ConstVal<'_>` found type `&_` 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.162/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.162/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.162/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.162/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.162/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.162/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.162/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.162/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[E0061]: this function takes 1 parameter but 0 parameters were supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/ranges.rs:60:27 | 60 | if us.as_u64() == 0 { | ^^^^^^ expected 1 parameter 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.162/src/regex.rs:141:13 | 141 | 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.162/src/regex.rs:141:28 | 141 | 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.162/src/regex.rs:141:59 | 141 | 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.162/src/regex.rs:141:90 | 141 | 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[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/regex.rs:152:12 | 152 | Ok(&ty::Const { val: ConstVal::Str(r), .. }) => Some(r), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `rustc::middle::const_val::ConstVal`, found reference | = note: expected type `rustc::middle::const_val::ConstVal<'_>` found type `&_` 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.162/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.162/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.162/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[E0609]: no field `val` on type `rustc::middle::const_val::ConstVal<'_>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/types.rs:1132:36 | 1132 | let which = match (&ty.sty, cv.val) { | ^^^ error[E0609]: no field `val` on type `rustc::middle::const_val::ConstVal<'_>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.162/src/types.rs:1347:53 | 1347 | Ok(val) => if let Integral(const_int) = val.val { | ^^^ 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.162/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 125 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.162/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=e2f9966c58ce2b91 -C extra-filename=-e2f9966c58ce2b91 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --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 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 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 itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-d225ddfcb503bcb8.rlib --extern-version itertools=itertools,0.6.2 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-931f0dcef843f60e.so --extern-version serde_derive=serde_derive,1.0.15 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-18005fa1be5dd889.rlib --extern-version lazy_static=lazy_static,0.2.8 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-945a6a37fb92248d.rlib --extern-version serde=serde,1.0.15 --cap-lints allow` (exit code: 101) }', src/bin/cratesfyi.rs:142 note: Run with `RUST_BACKTRACE=1` for a backtrace.