clippy 0.0.210

A bunch of helpful lints to avoid common pitfalls in Rust

Build #106655 2018-06-25 16:27:48

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.28.0-dev (b9bf4f162 2018-06-02)

# docs.rs version cratesfyi 0.5.0 (579f83b 2018-03-05)

# build log Updating registry `https://github.com/rust-lang/crates.io-index` Downloading clippy v0.0.210 Fresh dtoa v0.4.2 Fresh unicode-normalization v0.1.7 Fresh itoa v0.4.1 Fresh if_chain v0.1.2 Fresh void v1.0.2 Fresh percent-encoding v1.0.1 Fresh rustc-demangle v0.1.8 Fresh either v1.5.0 Fresh ucd-util v0.1.1 Fresh matches v0.1.6 Fresh utf8-ranges v1.0.0 Fresh cc v1.0.17 Fresh bitflags v0.9.1 Fresh itertools v0.7.8 Fresh unicode-bidi v0.3.4 Fresh regex-syntax v0.6.1 Fresh cfg-if v0.1.3 Fresh unreachable v1.0.0 Fresh semver-parser v0.7.0 Fresh libc v0.2.42 Fresh getopts v0.2.17 Fresh unicode-xid v0.1.0 Fresh idna v0.1.4 Fresh serde v1.0.66 Fresh memchr v2.0.1 Fresh proc-macro2 v0.4.6 Fresh ansi_term v0.11.0 Fresh url v1.7.0 Fresh quine-mc_cluskey v0.2.4 Fresh serde_json v1.0.22 Fresh semver v0.9.0 Fresh aho-corasick v0.6.4 Fresh quote v0.6.3 Fresh toml v0.4.6 Fresh backtrace-sys v0.1.23 Fresh lazy_static v1.0.1 Compiling rustc_version v0.2.2 Fresh syn v0.14.2 Fresh serde_derive v1.0.66 Fresh thread_local v0.3.5 Running `rustc --crate-name rustc_version .cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=b736822a67fa4cb2 -C extra-filename=-b736822a67fa4cb2 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-820f174884dff946.rlib --extern-version semver=semver,0.9.0 --cap-lints allow` Fresh backtrace v0.3.8 Fresh error-chain v0.11.0 Fresh regex v1.0.1 Fresh pulldown-cmark v0.1.2 Fresh cargo_metadata v0.5.6 Compiling clippy_lints v0.0.210 Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=df6e721537d05ac1 -C extra-filename=-df6e721537d05ac1 --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 lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-1adaeb69ca9ba8e2.rlib --extern-version lazy_static=lazy_static,1.0.1 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-f843fd6409a0e127.so --extern-version serde_derive=serde_derive,1.0.66 --extern cargo_metadata=/home/cratesfyi/cratesfyi/debug/deps/libcargo_metadata-ea0ede934c5e4b44.rlib --extern-version cargo_metadata=cargo_metadata,0.5.6 --extern url=/home/cratesfyi/cratesfyi/debug/deps/liburl-bae103a4d2fe2fa7.rlib --extern-version url=url,1.7.0 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-35a3f5b5482724c0.rlib --extern-version regex_syntax=regex-syntax,0.6.1 --extern quine_mc_cluskey=/home/cratesfyi/cratesfyi/debug/deps/libquine_mc_cluskey-6d8f73fdf7c11d33.rlib --extern-version quine_mc_cluskey=quine-mc_cluskey,0.2.4 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-e4a7c49b51f222ae.rlib --extern-version unicode_normalization=unicode-normalization,0.1.7 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-a15b6570ce0da9e4.rlib --extern-version itertools=itertools,0.7.8 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-809dd4ee1d9ed616.rlib --extern-version pulldown_cmark=pulldown-cmark,0.1.2 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-83164368626c5cc0.rlib --extern-version toml=toml,0.4.6 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-820f174884dff946.rlib --extern-version semver=semver,0.9.0 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-b1418846d651137e.rlib --extern-version serde=serde,1.0.66 --extern if_chain=/home/cratesfyi/cratesfyi/debug/deps/libif_chain-0604e6b6fde947ad.rlib --extern-version if_chain=if_chain,0.1.2 --cap-lints allow -L native=/home/cratesfyi/cratesfyi/debug/build/backtrace-sys-7dadb06fd5acb725/out` Compiling clippy v0.0.210 Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.210/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=741b4471312c92fa -C extra-filename=-741b4471312c92fa --out-dir /home/cratesfyi/cratesfyi/debug/build/clippy-741b4471312c92fa -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern rustc_version=/home/cratesfyi/cratesfyi/debug/deps/librustc_version-b736822a67fa4cb2.rlib --extern-version rustc_version=rustc_version,0.2.2 --extern ansi_term=/home/cratesfyi/cratesfyi/debug/deps/libansi_term-310b14a8c0903541.rlib --extern-version ansi_term=ansi_term,0.11.0 --cap-lints allow` Running `/home/cratesfyi/cratesfyi/debug/build/clippy-741b4471312c92fa/build-script-build` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:157:14 | 157 | (GenericArg::Lifetime(l_lt), GenericArg::Lifetime(r_lt)) => self.eq_lifetime(l_lt, r_lt), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:157:42 | 157 | (GenericArg::Lifetime(l_lt), GenericArg::Lifetime(r_lt)) => self.eq_lifetime(l_lt, r_lt), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:158:14 | 158 | (GenericArg::Type(l_ty), GenericArg::Type(r_ty)) => self.eq_ty(l_ty, r_ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:158:38 | 158 | (GenericArg::Type(l_ty), GenericArg::Type(r_ty)) => self.eq_ty(l_ty, r_ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParamKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:105:9 | 105 | GenericParamKind::Type { .. } => Some(param), | ^^^^^^^^^^^^^^^^ Use of undeclared type or module `GenericParamKind` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParamKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:106:9 | 106 | GenericParamKind::Lifetime { .. } => None, | ^^^^^^^^^^^^^^^^ Use of undeclared type or module `GenericParamKind` error[E0433]: failed to resolve. Use of undeclared type or module `GenericBound` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:115:20 | 115 | if let GenericBound::Trait(ref trait_ref, _) = *bound { | ^^^^^^^^^^^^ Use of undeclared type or module `GenericBound` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:125:25 | 125 | GenericArg::Lifetime(lt) => Some(lt), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:126:25 | 126 | GenericArg::Type(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParamKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:241:16 | 241 | if let GenericParamKind::Lifetime { .. } = par.kind { | ^^^^^^^^^^^^^^^^ Use of undeclared type or module `GenericParamKind` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:309:21 | 309 | GenericArg::Lifetime(_) => true, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:310:21 | 310 | GenericArg::Type(_) => false, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericBound` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:350:32 | 350 | if let GenericBound::Outlives(_) = *bound { | ^^^^^^^^^^^^ Use of undeclared type or module `GenericBound` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParamKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:433:16 | 433 | if let GenericParamKind::Type { .. } = param.kind { | ^^^^^^^^^^^^^^^^ Use of undeclared type or module `GenericParamKind` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParamKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:445:13 | 445 | GenericParamKind::Lifetime { .. } => Some((par.name.name(), par.span)), | ^^^^^^^^^^^^^^^^ Use of undeclared type or module `GenericParamKind` error[E0433]: failed to resolve. Could not find `GenericParamKind` in `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2095:18 | 2095 | hir::GenericParamKind::Type { .. } => { | ^^^^^^^^^^^^^^^^ Could not find `GenericParamKind` in `hir` error[E0433]: failed to resolve. Could not find `GenericBound` in `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2097:33 | 2097 | if let hir::GenericBound::Trait(ref ptr, ..) = *bound { | ^^^^^^^^^^^^ Could not find `GenericBound` in `hir` error[E0433]: failed to resolve. Could not find `GenericArg` in `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2107:46 | 2107 | hir::GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Could not find `GenericArg` in `hir` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParamKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/misc_early.rs:192:20 | 192 | if let GenericParamKind::Type { .. } = param.kind { | ^^^^^^^^^^^^^^^^ Use of undeclared type or module `GenericParamKind` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/needless_pass_by_value.rs:223:37 | 223 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/needless_pass_by_value.rs:224:37 | 224 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Could not find `GenericParamKind` in `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/new_without_default.rs:107:34 | 107 | hir::GenericParamKind::Type { .. } => true, | ^^^^^^^^^^^^^^^^ Could not find `GenericParamKind` in `hir` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/ptr.rs:166:29 | 166 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/ptr.rs:229:25 | 229 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/ptr.rs:230:25 | 230 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/transmute.rs:461:13 | 461 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/transmute.rs:462:13 | 462 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:186:13 | 186 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:187:13 | 187 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:254:33 | 254 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:255:33 | 255 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:266:29 | 266 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:267:29 | 267 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:276:29 | 276 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:277:29 | 277 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:308:21 | 308 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:309:21 | 309 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParamKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:1229:25 | 1229 | GenericParamKind::Lifetime { .. } => true, | ^^^^^^^^^^^^^^^^ Use of undeclared type or module `GenericParamKind` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:1884:21 | 1884 | GenericArg::Type(ty) => Some(ty), | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:1885:21 | 1885 | GenericArg::Lifetime(_) => None, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/use_self.rs:64:25 | 64 | GenericArg::Lifetime(_) => true, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0433]: failed to resolve. Use of undeclared type or module `GenericArg` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/use_self.rs:65:25 | 65 | GenericArg::Type(_) => false, | ^^^^^^^^^^ Use of undeclared type or module `GenericArg` error[E0531]: cannot find tuple struct/variant `ExprContinue` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:79:15 | 79 | (&ExprContinue(li), &ExprContinue(ri)) => { | ^^^^^^^^^^^^ not found in this scope error[E0531]: cannot find tuple struct/variant `ExprContinue` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:79:34 | 79 | (&ExprContinue(li), &ExprContinue(ri)) => { | ^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `GenericArg` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:155:41 | 155 | fn eq_generic_arg(&mut self, left: &GenericArg, right: &GenericArg) -> bool { | ^^^^^^^^^^ did you mean `Generics`? error[E0412]: cannot find type `GenericArg` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:155:61 | 155 | fn eq_generic_arg(&mut self, left: &GenericArg, right: &GenericArg) -> bool { | ^^^^^^^^^^ did you mean `Generics`? error[E0412]: cannot find type `GenericArgs` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:212:45 | 212 | fn eq_path_parameters(&mut self, left: &GenericArgs, right: &GenericArgs) -> bool { | ^^^^^^^^^^^ did you mean `Generics`? error[E0412]: cannot find type `GenericArgs` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:212:66 | 212 | fn eq_path_parameters(&mut self, left: &GenericArgs, right: &GenericArgs) -> bool { | ^^^^^^^^^^^ did you mean `Generics`? error[E0531]: cannot find tuple struct/variant `ExprContinue` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:355:13 | 355 | ExprContinue(i) => { | ^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find value `ExprContinue` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:356:37 | 356 | let c: fn(_) -> _ = ExprContinue; | ^^^^^^^^^^^^ not found in this scope error[E0531]: cannot find tuple struct/variant `ExprContinue` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/sugg.rs:55:22 | 55 | hir::ExprContinue(..) | | ^^^^^^^^^^^^ not found in `hir` error[E0532]: expected tuple struct/variant, found unit variant `hir::Visibility::Crate` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/inspector.rs:56:13 | 56 | hir::Visibility::Crate(_) => println!("visible crate wide"), | ^^^^^^^^^^^^^^^^^^^^^^ not a tuple struct/variant help: possible better candidate is found in another module, you can import it into scope | 5 | use syntax::ast::VisibilityKind::Crate; | error[E0531]: cannot find tuple struct/variant `ExprContinue` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/inspector.rs:303:14 | 303 | hir::ExprContinue(_) => println!("{}Again", ind), | ^^^^^^^^^^^^ not found in `hir` error[E0532]: expected tuple struct/variant, found unit variant `hir::Visibility::Crate` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/inspector.rs:348:9 | 348 | hir::Visibility::Crate(_) => println!("visible crate wide"), | ^^^^^^^^^^^^^^^^^^^^^^ not a tuple struct/variant help: possible better candidate is found in another module, you can import it into scope | 5 | use syntax::ast::VisibilityKind::Crate; | error[E0531]: cannot find tuple struct/variant `ItemExistential` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/inspector.rs:383:14 | 383 | hir::ItemExistential(..) => { | ^^^^^^^^^^^^^^^ not found in `hir` error[E0531]: cannot find tuple struct/variant `ExprContinue` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/eval_order_dependence.rs:127:13 | 127 | ExprContinue(_) | ExprBreak(_, _) | ExprRet(_) => self.report_diverging_sub_expr(e), | ^^^^^^^^^^^^ not found in this scope error[E0422]: cannot find struct, variant or union type `FnHeader` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:95:56 | 95 | hir::intravisit::FnKind::ItemFn(_, _, hir::FnHeader { unsafety, .. }, _, _) => unsafety, | ^^^^^^^^ not found in `hir` error[E0422]: cannot find struct, variant or union type `FnHeader` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:104:83 | 104 | hir::intravisit::FnKind::Method(_, &hir::MethodSig { header: hir::FnHeader { abi: Abi::Rust, .. }, .. }, _, _) | | ^^^^^^^^ not found in `hir` error[E0422]: cannot find struct, variant or union type `FnHeader` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:105:60 | 105 | hir::intravisit::FnKind::ItemFn(_, _, hir::FnHeader { abi: Abi::Rust, .. }, _, _) => self.check_arg_number(cx, decl, span), | ^^^^^^^^ not found in `hir` error[E0425]: cannot find function `walk_param_bound` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:111:13 | 111 | walk_param_bound(&mut visitor, bound); | ^^^^^^^^^^^^^^^^ did you mean `walk_ty_param_bound`? error[E0531]: cannot find tuple struct/variant `ItemExistential` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:348:24 | 348 | if let ItemExistential(ref exist_ty) = self.cx.tcx.hir.expect_item(exist_ty_id.id).node { | ^^^^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `walk_param_bound` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:392:21 | 392 | walk_param_bound(&mut visitor, bound); | ^^^^^^^^^^^^^^^^ did you mean `walk_ty_param_bound`? error[E0531]: cannot find tuple struct/variant `ExprContinue` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/loops.rs:643:9 | 643 | ExprContinue(d) => { | ^^^^^^^^^^^^ not found in this scope error[E0531]: cannot find tuple struct/variant `ItemExistential` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/missing_doc.rs:146:18 | 146 | hir::ItemExistential(..) => "an existential type", | ^^^^^^^^^^^^^^^ not found in `hir` error[E0531]: cannot find tuple struct/variant `ExprContinue` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/unused_label.rs:72:51 | 72 | hir::ExprBreak(destination, _) | hir::ExprContinue(destination) => if let Some(label) = destination.label { | ^^^^^^^^^^^^ not found in `hir` error[E0609]: no field `format` on type `syntax_pos::ExpnInfo` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/mod.rs:60:20 | 60 | match info.format { | ^^^^^^ unknown field | = note: available fields are: `call_site`, `callee` error[E0609]: no field `format` on type `syntax_pos::ExpnInfo` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/mod.rs:71:20 | 71 | match info.format { | ^^^^^^ unknown field | = note: available fields are: `call_site`, `callee` error[E0609]: no field `format` on type `&syntax_pos::ExpnInfo` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/mod.rs:87:54 | 87 | if let ExpnFormat::MacroAttribute(..) = info.format { | ^^^^^^ error[E0609]: no field `def_site` on type `&syntax_pos::ExpnInfo` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/mod.rs:92:14 | 92 | info.def_site.map_or(true, |span| { | ^^^^^^^^ error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 6 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/mod.rs:527:23 | 527 | node: ItemFn(_, _, _, eid), | ^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 4 error[E0609]: no field `format` on type `syntax_pos::ExpnInfo` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/mod.rs:771:27 | 771 | .map(|ei| (ei.format.name(), ei.call_site)); | ^^^^^^ unknown field | = note: available fields are: `call_site`, `callee` error[E0609]: no field `format` on type `syntax_pos::ExpnInfo` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/mod.rs:794:23 | 794 | .map(|ei| (ei.format.name(), ei.call_site)); | ^^^^^^ unknown field | = note: available fields are: `call_site`, `callee` error[E0599]: no variant named `Existential` found for type `rustc::hir::def::Def` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/mod.rs:984:9 | 984 | Def::Existential(id) | | ^^^^^^^^^^^^^^^^^^^^ variant not found in `rustc::hir::def::Def` error[E0609]: no field `name` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:80:53 | 80 | both(&li.label, &ri.label, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:234:22 | 234 | match (&left.args, &right.args) { | ^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/hir_utils.rs:234:35 | 234 | match (&left.args, &right.args) { | ^^^^ error[E0599]: no variant named `Async` found for type `syntax::ast::ExprKind` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/sugg.rs:103:13 | 103 | ast::ExprKind::Async(..) | | ^^^^^^^^^^^^^^^^^^^^^^^^ variant not found in `syntax::ast::ExprKind` error[E0599]: no variant named `ExprContinue` found for type `rustc::hir::Expr_` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/utils/author.rs:435:13 | 435 | Expr_::ExprContinue(ref _destination) => { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ variant not found in `rustc::hir::Expr_` error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 6 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/attrs.rs:210:12 | 210 | if let ItemFn(_, _, _, eid) = item.node { | ^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 4 error[E0023]: this pattern has 5 fields, but the corresponding tuple variant has 7 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:95:13 | 95 | hir::intravisit::FnKind::ItemFn(_, _, hir::FnHeader { unsafety, .. }, _, _) => unsafety, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 7 fields, found 5 error[E0609]: no field `header` on type `&rustc::hir::MethodSig` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:96:66 | 96 | hir::intravisit::FnKind::Method(_, sig, _, _) => sig.header.unsafety, | ^^^^^^ error[E0026]: struct `rustc::hir::MethodSig` does not have a field named `header` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:104:70 | 104 | hir::intravisit::FnKind::Method(_, &hir::MethodSig { header: hir::FnHeader { abi: Abi::Rust, .. }, .. }, _, _) | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `rustc::hir::MethodSig` does not have this field error[E0023]: this pattern has 5 fields, but the corresponding tuple variant has 7 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:105:17 | 105 | hir::intravisit::FnKind::ItemFn(_, _, hir::FnHeader { abi: Abi::Rust, .. }, _, _) => self.check_arg_number(cx, decl, span), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 7 fields, found 5 error[E0609]: no field `header` on type `&rustc::hir::MethodSig` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:116:20 | 116 | if sig.header.abi == Abi::Rust { | ^^^^^^ error[E0609]: no field `header` on type `&rustc::hir::MethodSig` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/functions.rs:122:44 | 122 | self.check_raw_ptr(cx, sig.header.unsafety, &sig.decl, body, item.id); | ^^^^^^ error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 6 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:62:16 | 62 | if let ItemFn(ref decl, _, ref generics, id) = item.node { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 4 error[E0609]: no field `kind` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:104:71 | 104 | let types = generics.params.iter().filter_map(|param| match param.kind { | ^^^^ error[E0609]: no field `bounds` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:109:27 | 109 | for bound in &typ.bounds { | ^^^^^^ error[E0609]: no field `args` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:124:44 | 124 | let lifetimes = params.args.iter().filter_map(|arg| match arg { | ^^^^ error[E0609]: no field `kind` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:241:56 | 241 | if let GenericParamKind::Lifetime { .. } = par.kind { | ^^^^ error[E0609]: no field `bounds` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:242:20 | 242 | if par.bounds.is_empty() { | ^^^^^^ error[E0609]: no field `name` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:243:53 | 243 | allowed_lts.insert(RefLt::Named(par.name.name())); | ^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:306:71 | 306 | if let Some(ref last_path_segment) = last_path_segment(qpath).args { | ^^^^ error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:307:35 | 307 | if !last_path_segment.parenthesized | ^^^^^^^^^^^^^ error[E0023]: this pattern has 3 fields, but the corresponding tuple variant has 2 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:347:13 | 347 | TyImplTraitExistential(exist_ty_id, _, _) => { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 2 fields, found 3 error[E0609]: no field `kind` on type `&'tcx rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:433:54 | 433 | if let GenericParamKind::Type { .. } = param.kind { | ^^^^ error[E0609]: no field `kind` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:444:37 | 444 | .filter_map(|par| match par.kind { | ^^^^ error[E0609]: no field `name` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:445:60 | 445 | GenericParamKind::Lifetime { .. } => Some((par.name.name(), par.span)), | ^^^^ error[E0609]: no field `span` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/lifetimes.rs:445:77 | 445 | GenericParamKind::Lifetime { .. } => Some((par.name.name(), par.span)), | ^^^^ error[E0560]: struct `rustc::hir::PathSegment` has no field named `args` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/map_clone.rs:107:21 | 107 | args: None, | ^^^^ `rustc::hir::PathSegment` does not have this field | = note: available fields are: `name`, `parameters`, `infer_types` error[E0609]: no field `kind` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2094:56 | 2094 | generics.params.iter().any(|param| match param.kind { | ^^^^ error[E0609]: no field `name` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2096:23 | 2096 | param.name.name() == seg.name && param.bounds.iter().any(|bound| { | ^^^^ error[E0609]: no field `bounds` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2096:56 | 2096 | param.name.name() == seg.name && param.bounds.iter().any(|bound| { | ^^^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2100:57 | 2100 | if let Some(ref params) = s.args { | ^^^^ error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2101:43 | 2101 | if params.parenthesized { | ^^^^^^^^^^^^^ error[E0614]: type `rustc::hir::Ty` cannot be dereferenced --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/methods.rs:2111:77 | 2111 | && (is_self_ty(&types[0]) || is_ty(&*types[0], self_ty)) | ^^^^^^^^^ error[E0609]: no field `format` on type `syntax_pos::ExpnInfo` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/misc.rs:561:45 | 561 | .map_or(false, |info| matches!(info.format, ExpnFormat::MacroAttribute(_))) | ^^^^^^ unknown field | = note: available fields are: `call_site`, `callee` error[E0609]: no field `kind` on type `&syntax::ast::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/misc_early.rs:192:58 | 192 | if let GenericParamKind::Type { .. } = param.kind { | ^^^^ error[E0609]: no field `ident` on type `&syntax::ast::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/misc_early.rs:193:34 | 193 | let name = param.ident.name.as_str(); | ^^^^^ error[E0609]: no field `ident` on type `&syntax::ast::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/misc_early.rs:198:31 | 198 | param.ident.span, | ^^^^^ error[E0023]: this pattern has 6 fields, but the corresponding tuple variant has 5 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/misc_early.rs:299:24 | 299 | if let ExprKind::Closure(_, _, _, ref decl, ref block, _) = closure.node { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 fields, found 6 error[E0609]: no field `abi` on type `rustc_target::spec::abi::Abi` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/needless_pass_by_value.rs:76:27 | 76 | if header.abi != Abi::Rust { | ^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/needless_pass_by_value.rs:221:51 | 221 | .and_then(|ps| ps.args.as_ref()) | ^^^^ error[E0609]: no field `header` on type `&rustc::hir::MethodSig` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/new_without_default.rs:102:32 | 102 | if sig.header.constness == hir::Constness::Const { | ^^^^^^ error[E0609]: no field `kind` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/new_without_default.rs:106:81 | 106 | if impl_item.generics.params.iter().any(|gen| match gen.kind { | ^^^^ error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 6 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/non_expressive_names.rs:315:16 | 315 | if let ItemKind::Fn(ref decl, _, _, ref blk) = item.node { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 4 error[E0023]: this pattern has 4 fields, but the corresponding tuple variant has 6 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/ptr.rs:106:16 | 106 | if let ItemFn(ref decl, _, _, body_id) = item.node { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 6 fields, found 4 error[E0026]: struct `rustc::hir::PathSegment` does not have a field named `args` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/ptr.rs:163:46 | 163 | if let Some(&PathSegment{args: Some(ref parameters), ..}) = path.segments.last(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `rustc::hir::PathSegment` does not have this field error[E0609]: no field `args` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/ptr.rs:165:56 | 165 | let types: Vec<_> = parameters.args.iter().filter_map(|arg| match arg { | ^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/ptr.rs:226:50 | 226 | if let Some(ref params) = bx.args; | ^^^^ error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/ptr.rs:227:32 | 227 | if !params.parenthesized; | ^^^^^^^^^^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/transmute.rs:458:39 | 458 | if let Some(ref params) = seg.args; | ^^^^ error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/transmute.rs:459:20 | 459 | if !params.parenthesized; | ^^^^^^^^^^^^^ error[E0609]: no field `abi` on type `rustc_target::spec::abi::Abi` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/trivially_copy_pass_by_ref.rs:88:27 | 88 | if header.abi != Abi::Rust { | ^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:183:40 | 183 | if let Some(ref params) = last.args; | ^^^^ error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:184:20 | 184 | if !params.parenthesized; | ^^^^^^^^^^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:250:29 | 250 | seg.args | ^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:262:25 | 262 | seg.args | ^^^^ error[E0609]: no field `args` on type `&syntax::ptr::P<rustc::hir::PathSegment>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:274:51 | 274 | if let Some(ref params) = seg.args { | ^^^^ error[E0609]: no field `args` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:275:42 | 275 | for ty in params.args.iter().filter_map(|arg| match arg { | ^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:305:46 | 305 | if let Some(ref params) = bx.args; | ^^^^ error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:306:28 | 306 | if !params.parenthesized; | ^^^^^^^^^^^^^ error[E0609]: no field `kind` on type `&rustc::hir::GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:1228:88 | 1228 | .any(|bound| bound.bound_generic_params.iter().any(|gen| match gen.kind { | ^^^^ error[E0609]: no field `args` on type `&&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/types.rs:1882:65 | 1882 | let params: Vec<_> = path.segments.last().as_ref()?.args.as_ref()? | ^^^^ error[E0609]: no field `args` on type `&rustc::hir::PathSegment` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/use_self.rs:61:82 | 61 | let parameters = &item_path.segments.last().expect(SEGMENTS_MSG).args; | ^^^^ error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.210/src/use_self.rs:63:29 | 63 | !params.parenthesized && !params.args.iter().any(|arg| match arg { | ^^^^^^^^^^^^^ error: aborting due to 136 previous errors Some errors occurred: E0023, E0026, E0412, E0422, E0425, E0433, E0531, E0532, E0560... For more information about an error, try `rustc --explain E0023`. thread 'main' panicked at 'Error( CargoError( 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.210/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=df6e721537d05ac1 -C extra-filename=-df6e721537d05ac1 --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 lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-1adaeb69ca9ba8e2.rlib --extern-version lazy_static=lazy_static,1.0.1 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-f843fd6409a0e127.so --extern-version serde_derive=serde_derive,1.0.66 --extern cargo_metadata=/home/cratesfyi/cratesfyi/debug/deps/libcargo_metadata-ea0ede934c5e4b44.rlib --extern-version cargo_metadata=cargo_metadata,0.5.6 --extern url=/home/cratesfyi/cratesfyi/debug/deps/liburl-bae103a4d2fe2fa7.rlib --extern-version url=url,1.7.0 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-35a3f5b5482724c0.rlib --extern-version regex_syntax=regex-syntax,0.6.1 --extern quine_mc_cluskey=/home/cratesfyi/cratesfyi/debug/deps/libquine_mc_cluskey-6d8f73fdf7c11d33.rlib --extern-version quine_mc_cluskey=quine-mc_cluskey,0.2.4 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-e4a7c49b51f222ae.rlib --extern-version unicode_normalization=unicode-normalization,0.1.7 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-a15b6570ce0da9e4.rlib --extern-version itertools=itertools,0.7.8 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-809dd4ee1d9ed616.rlib --extern-version pulldown_cmark=pulldown-cmark,0.1.2 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-83164368626c5cc0.rlib --extern-version toml=toml,0.4.6 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-820f174884dff946.rlib --extern-version semver=semver,0.9.0 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-b1418846d651137e.rlib --extern-version serde=serde,1.0.66 --extern if_chain=/home/cratesfyi/cratesfyi/debug/deps/libif_chain-0604e6b6fde947ad.rlib --extern-version if_chain=if_chain,0.1.2 --cap-lints allow -L native=/home/cratesfyi/cratesfyi/debug/build/backtrace-sys-7dadb06fd5acb725/out` (exit code: 101) } ), State { next_error: None, backtrace: None } )', src/bin/cratesfyi.rs:142:13 note: Run with `RUST_BACKTRACE=1` for a backtrace.