clippy 0.0.187

A bunch of helpful lints to avoid common pitfalls in Rust
Documentation

Build #87481 2018-02-26 20:36:31

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.22.0-dev (b1cfd1750 2017-09-21)

# docs.rs version cratesfyi 0.4.2 (13da7b2 2017-10-12)

# build log Build failed, waiting for other jobs to finish... Updating registry `https://github.com/rust-lang/crates.io-index` Downloading clippy v0.0.187 Fresh regex-syntax v0.4.2 Fresh either v1.4.0 Fresh percent-encoding v1.0.1 Fresh num-traits v0.2.0 Fresh if_chain v0.1.2 Fresh quote v0.3.15 Fresh unicode-normalization v0.1.5 Fresh semver-parser v0.7.0 Fresh itertools v0.6.5 Fresh unicode-xid v0.0.4 Fresh num-traits v0.1.43 Fresh quine-mc_cluskey v0.2.4 Fresh lazy_static v1.0.0 Fresh matches v0.1.6 Fresh utf8-ranges v1.0.0 Fresh libc v0.2.36 Compiling clippy v0.0.187 Fresh synom v0.11.3 Fresh getopts v0.2.17 Fresh serde v1.0.27 Fresh unicode-bidi v0.3.4 Fresh bitflags v0.9.1 Fresh memchr v2.0.1 Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.187/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=ec5114642820a2e0 -C extra-filename=-ec5114642820a2e0 --out-dir /home/cratesfyi/cratesfyi/debug/build/clippy-ec5114642820a2e0 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow` Fresh syn v0.11.11 Fresh semver v0.6.0 Fresh dtoa v0.4.2 Fresh toml v0.4.5 Fresh pulldown-cmark v0.0.15 Fresh aho-corasick v0.6.4 Fresh serde_derive_internals v0.19.0 Fresh itoa v0.3.4 Fresh void v1.0.2 Fresh serde_derive v1.0.27 Fresh serde_json v1.0.9 Compiling unreachable v1.0.0 Compiling cargo_metadata v0.2.3 Running `rustc --crate-name unreachable .cargo/registry/src/github.com-1ecc6299db9ec823/unreachable-1.0.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=b9c7c97cb1bf6717 -C extra-filename=-b9c7c97cb1bf6717 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern void=/home/cratesfyi/cratesfyi/debug/deps/libvoid-f4e2164e54e8e4e8.rlib --extern-version void=void,1.0.2 --cap-lints allow` Fresh idna v0.1.4 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=/home/cratesfyi/cratesfyi/debug/deps/libserde-33cbffd18eedd627.rlib --extern-version serde=serde,1.0.27 --extern serde_json=/home/cratesfyi/cratesfyi/debug/deps/libserde_json-5a0e9390ab23bd51.rlib --extern-version serde_json=serde_json,1.0.9 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-f976b5d07a1d7005.so --extern-version serde_derive=serde_derive,1.0.27 --cap-lints allow` Fresh url v1.7.0 Compiling clippy_lints v0.0.187 Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=8e0258d21c384dce -C extra-filename=-8e0258d21c384dce --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-4fe84c02a735c569.rlib --extern-version regex_syntax=regex-syntax,0.4.2 --extern url=/home/cratesfyi/cratesfyi/debug/deps/liburl-bae103a4d2fe2fa7.rlib --extern-version url=url,1.7.0 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-d78457efc2ee8353.rlib --extern-version lazy_static=lazy_static,1.0.0 --extern if_chain=/home/cratesfyi/cratesfyi/debug/deps/libif_chain-0604e6b6fde947ad.rlib --extern-version if_chain=if_chain,0.1.2 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-8c808e0cbe979d1a.rlib --extern-version itertools=itertools,0.6.5 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-33cbffd18eedd627.rlib --extern-version serde=serde,1.0.27 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-f976b5d07a1d7005.so --extern-version serde_derive=serde_derive,1.0.27 --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 --cap-lints allow` error: expected one of `)` or `,`, found `=` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/copies.rs:187:25 | 187 | (min_index..=max_index).all(|index| arms[index].guard.is_none()) && | ^ expected one of `)` or `,` here error: expected one of `)` or `,`, found `=` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/loops.rs:1768:34 | 1768 | ty::TyArray(_, n) => (0..=32).contains(const_to_u64(n)), | ^ expected one of `)` or `,` here Compiling thread_local v0.3.5 Running `rustc --crate-name thread_local .cargo/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.5/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=db3ee6d3c7fe5526 -C extra-filename=-db3ee6d3c7fe5526 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-d78457efc2ee8353.rlib --extern-version lazy_static=lazy_static,1.0.0 --extern unreachable=/home/cratesfyi/cratesfyi/debug/deps/libunreachable-b9c7c97cb1bf6717.rlib --extern-version unreachable=unreachable,1.0.0 --cap-lints allow` Running `/home/cratesfyi/cratesfyi/debug/build/clippy-ec5114642820a2e0/build-script-build` Compiling regex v0.2.6 Running `rustc --crate-name regex .cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.2.6/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=0b863428902397af -C extra-filename=-0b863428902397af --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-4fe84c02a735c569.rlib --extern-version regex_syntax=regex-syntax,0.4.2 --extern aho_corasick=/home/cratesfyi/cratesfyi/debug/deps/libaho_corasick-e524697c89f1b116.rlib --extern-version aho_corasick=aho-corasick,0.6.4 --extern memchr=/home/cratesfyi/cratesfyi/debug/deps/libmemchr-f754cb82c0139373.rlib --extern-version memchr=memchr,2.0.1 --extern utf8_ranges=/home/cratesfyi/cratesfyi/debug/deps/libutf8_ranges-b81dc320c0a952bb.rlib --extern-version utf8_ranges=utf8-ranges,1.0.0 --extern thread_local=/home/cratesfyi/cratesfyi/debug/deps/libthread_local-db3ee6d3c7fe5526.rlib --extern-version thread_local=thread_local,0.3.5 --cap-lints allow` error[E0432]: unresolved import `rustc::ty::layout::LayoutOf` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/escape.rs:8:5 | 8 | use rustc::ty::layout::LayoutOf; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LayoutOf` in `ty::layout`. Did you mean to use `Layout`? error[E0432]: unresolved import `rustc::ty::layout::LayoutOf` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/large_enum_variant.rs:6:5 | 6 | use rustc::ty::layout::LayoutOf; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LayoutOf` in `ty::layout`. Did you mean to use `Layout`? error[E0432]: unresolved import `rustc::ty::layout::LayoutOf` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/transmute.rs:4:5 | 4 | use rustc::ty::layout::LayoutOf; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LayoutOf` in `ty::layout`. Did you mean to use `Layout`? error[E0432]: unresolved import `rustc::ty::layout::LayoutOf` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:7:5 | 7 | use rustc::ty::layout::LayoutOf; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `LayoutOf` in `ty::layout`. Did you mean to use `Layout`? error[E0408]: variable `DotDotEq` is not bound in all patterns --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/sugg.rs:366:9 | 366 | DotDot | DotDotEq => Associativity::None, | ^^^^^^ -------- variable not in all patterns | | | pattern doesn't bind `DotDotEq` error[E0433]: failed to resolve. Could not find `BodyOwnerKind` in `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:51:14 | 51 | hir::BodyOwnerKind::Fn => false, | ^^^^^^^^^^^^^ Could not find `BodyOwnerKind` in `hir` error[E0433]: failed to resolve. Could not find `BodyOwnerKind` in `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:52:14 | 52 | hir::BodyOwnerKind::Const | hir::BodyOwnerKind::Static(..) => true, | ^^^^^^^^^^^^^ Could not find `BodyOwnerKind` in `hir` error[E0433]: failed to resolve. Could not find `BodyOwnerKind` in `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:52:42 | 52 | hir::BodyOwnerKind::Const | hir::BodyOwnerKind::Static(..) => true, | ^^^^^^^^^^^^^ Could not find `BodyOwnerKind` in `hir` error[E0433]: failed to resolve. Could not find `UnpackedKind` in `subst` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/derive.rs:152:39 | 152 | if let ty::subst::UnpackedKind::Type(subst) = subst.unpack() { | ^^^^^^^^^^^^ Could not find `UnpackedKind` in `subst` error[E0433]: failed to resolve. Use of undeclared type or module `VisibilityKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/enum_variants.rs:263:41 | 263 | if item.vis.node == VisibilityKind::Public { | ^^^^^^^^^^^^^^ Use of undeclared type or module `VisibilityKind` error[E0433]: failed to resolve. Use of undeclared type or module `VisibilityKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/enum_variants.rs:288:17 | 288 | VisibilityKind::Public => PUB_ENUM_VARIANT_NAMES, | ^^^^^^^^^^^^^^ Use of undeclared type or module `VisibilityKind` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:228:16 | 228 | if let GenericParam::Lifetime(ref lt) = *par { | ^^^^^^^^^^^^ Use of undeclared type or module `GenericParam` error[E0407]: method `visit_generic_param` is not a member of trait `Visitor` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:408:5 | 408 | / fn visit_generic_param(&mut self, param: &'tcx GenericParam) { 409 | | // don't actually visit `<'a>` or `<'a: 'b>` 410 | | // we've already visited the `'a` declarations and 411 | | // don't want to spuriously remove them ... | 416 | | } 417 | | } | |_____^ not a member of trait `Visitor` error[E0433]: failed to resolve. Use of undeclared type or module `GenericParam` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/misc_early.rs:192:20 | 192 | if let GenericParam::Type(ref ty) = *param { | ^^^^^^^^^^^^ Use of undeclared type or module `GenericParam` error[E0433]: failed to resolve. Use of undeclared type or module `UseTreeKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/unsafe_removed_from_name.rs:46:9 | 46 | UseTreeKind::Simple(new_name) => { | ^^^^^^^^^^^ Use of undeclared type or module `UseTreeKind` error[E0433]: failed to resolve. Use of undeclared type or module `UseTreeKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/unsafe_removed_from_name.rs:55:9 | 55 | UseTreeKind::Glob => {}, | ^^^^^^^^^^^ Use of undeclared type or module `UseTreeKind` error[E0433]: failed to resolve. Use of undeclared type or module `UseTreeKind` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/unsafe_removed_from_name.rs:56:9 | 56 | UseTreeKind::Nested(ref nested_use_tree) => { | ^^^^^^^^^^^ Use of undeclared type or module `UseTreeKind` error[E0531]: cannot find tuple struct/variant `ItemTraitAlias` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/inspector.rs:406:14 | 406 | hir::ItemTraitAlias(..) => { | ^^^^^^^^^^^^^^ not found in `hir` error[E0422]: cannot find struct, variant or union type `SubstitutionPart` in module `rustc_errors` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:651:39 | 651 | rustc_errors::SubstitutionPart { | ^^^^^^^^^^^^^^^^ did you mean `Substitution`? error[E0412]: cannot find type `GenericParam` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:140:28 | 140 | named_generics: &'tcx [GenericParam], | ^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `GenericParam` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:225:39 | 225 | fn allowed_lts_from(named_generics: &[GenericParam]) -> HashSet<RefLt> { | ^^^^^^^^^^^^ not found in this scope error[E0531]: cannot find tuple struct/variant `TyImplTraitExistential` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:330:13 | 330 | TyImplTraitExistential(ref exist_ty, _) => { | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error[E0412]: cannot find type `GenericParam` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:408:52 | 408 | fn visit_generic_param(&mut self, param: &'tcx GenericParam) { | ^^^^^^^^^^^^ not found in this scope error[E0425]: cannot find function `walk_generic_param` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:415:13 | 415 | walk_generic_param(self, param) | ^^^^^^^^^^^^^^^^^^ did you mean `walk_generics`? error[E0531]: cannot find tuple struct/variant `ItemTraitAlias` in module `hir` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/missing_doc.rs:142:18 | 142 | hir::ItemTraitAlias(..) => "a trait alias", | ^^^^^^^^^^^^^^ not found in `hir` error[E0412]: cannot find type `UseTree` in this scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/unsafe_removed_from_name.rs:44:30 | 44 | fn check_use_tree(use_tree: &UseTree, cx: &EarlyContext, span: &Span) { | ^^^^^^^ not found in this scope error[E0599]: no method named `body_owner_kind` found for type `rustc::hir::map::Map<'_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:50:22 | 50 | match cx.tcx.hir.body_owner_kind(parent_id) { | ^^^^^^^^^^^^^^^ error[E0624]: method `lookup_line` is private --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:431:49 | 431 | let file_map_and_line = cx.sess().codemap().lookup_line(span.lo()).unwrap(); | ^^^^^^^^^^^ error[E0560]: struct `rustc_errors::CodeSuggestion` has no field named `substitutions` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:647:9 | 647 | substitutions: vec![ | ^^^^^^^^^^^^^^ `rustc_errors::CodeSuggestion` does not have this field | = note: available fields are: `substitution_parts`, `msg`, `show_code_when_inline` error[E0560]: struct `rustc_errors::Substitution` has no field named `parts` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:649:17 | 649 | parts: sugg.into_iter() | ^^^^^^ `rustc_errors::Substitution` does not have this field | = note: available fields are: `span`, `substitutions` error[E0560]: struct `rustc_errors::CodeSuggestion` has no field named `approximate` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:661:9 | 661 | approximate: false, | ^^^^^^^^^^^^ `rustc_errors::CodeSuggestion` does not have this field | = note: available fields are: `substitution_parts`, `msg`, `show_code_when_inline` error[E0599]: no associated item named `TyForeign` found for type `rustc::hir::def::Def` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:963:9 | 963 | Def::TyForeign(id) | | ^^^^^^^^^^^^^^^^^^ error[E0599]: no associated item named `TraitAlias` found for type `rustc::hir::def::Def` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/mod.rs:968:9 | 968 | Def::TraitAlias(id) | | ^^^^^^^^^^^^^^^^^^^ error[E0609]: no field `label` on type `rustc::hir::Destination` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:76:26 | 76 | both(&li.label, &ri.label, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^^ unknown field | = note: available fields are: `ident`, `target_id` error[E0609]: no field `label` on type `rustc::hir::Destination` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:76:37 | 76 | both(&li.label, &ri.label, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^^ unknown field | = note: available fields are: `ident`, `target_id` error[E0609]: no field `name` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:76:53 | 76 | both(&li.label, &ri.label, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^ error[E0609]: no field `label` on type `rustc::hir::Destination` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:90:26 | 90 | both(&li.label, &ri.label, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^^ unknown field | = note: available fields are: `ident`, `target_id` error[E0609]: no field `label` on type `rustc::hir::Destination` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:90:37 | 90 | both(&li.label, &ri.label, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^^ unknown field | = note: available fields are: `ident`, `target_id` error[E0609]: no field `name` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:90:53 | 90 | both(&li.label, &ri.label, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^ error[E0609]: no field `name` on type `&syntax::codemap::Spanned<syntax_pos::symbol::Symbol>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:108:78 | 108 | lls == rls && self.eq_block(lb, rb) && both(ll, rl, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^ error[E0609]: no field `name` on type `&syntax::codemap::Spanned<syntax_pos::symbol::Symbol>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:108:97 | 108 | lls == rls && self.eq_block(lb, rb) && both(ll, rl, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^ error[E0609]: no field `name` on type `&syntax::codemap::Spanned<syntax_pos::symbol::Symbol>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:138:88 | 138 | self.eq_expr(lc, rc) && self.eq_block(lb, rb) && both(ll, rl, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^ error[E0609]: no field `name` on type `&syntax::codemap::Spanned<syntax_pos::symbol::Symbol>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:138:107 | 138 | self.eq_expr(lc, rc) && self.eq_block(lb, rb) && both(ll, rl, |l, r| l.name.as_str() == r.name.as_str()) | ^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:225:15 | 225 | (&None, &None) => true, | ^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:225:22 | 225 | (&None, &None) => true, | ^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:226:15 | 226 | (&Some(ref l), &Some(ref r)) => self.eq_path_parameters(l, r), | ^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:226:29 | 226 | (&Some(ref l), &Some(ref r)) => self.eq_path_parameters(l, r), | ^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `label` on type `rustc::hir::Destination` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:334:36 | 334 | if let Some(i) = i.label { | ^^^^^ unknown field | = note: available fields are: `ident`, `target_id` error[E0609]: no field `label` on type `rustc::hir::Destination` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:371:36 | 371 | if let Some(i) = i.label { | ^^^^^ unknown field | = note: available fields are: `ident`, `target_id` error[E0609]: no field `name` on type `syntax::codemap::Spanned<syntax_pos::symbol::Symbol>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:436:39 | 436 | self.hash_name(&i.name); | ^^^^ unknown field | = note: available fields are: `node`, `span` error[E0609]: no field `name` on type `syntax::codemap::Spanned<syntax_pos::symbol::Symbol>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/hir_utils.rs:531:39 | 531 | self.hash_name(&l.name); | ^^^^ unknown field | = note: available fields are: `node`, `span` error[E0599]: no associated item named `DotDotEq` found for type `syntax::util::parser::AssocOp` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/sugg.rs:130:74 | 130 | ast::ExprKind::Range(.., RangeLimits::Closed) => Sugg::BinOp(AssocOp::DotDotEq, snippet), | ^^^^^^^^^^^^^^^^^ error[E0599]: no associated item named `DotDotEq` found for type `syntax::util::parser::AssocOp` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/sugg.rs:169:52 | 169 | ast::RangeLimits::Closed => make_assoc(AssocOp::DotDotEq, &self, end), | ^^^^^^^^^^^^^^^^^ error[E0599]: no associated item named `DotDotEq` found for type `syntax::util::parser::AssocOp` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/sugg.rs:316:9 | 316 | AssocOp::DotDotEq => format!("{}..={}", lhs, rhs), | ^^^^^^^^^^^^^^^^^ error[E0599]: no method named `next_point` found for type `&syntax::codemap::CodeMap` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/sugg.rs:505:38 | 505 | let hi = cx.sess().codemap().next_point(remove_span).hi(); | ^^^^^^^^^^ error[E0599]: no method named `trait_is_auto` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/inspector.rs:400:23 | 400 | if cx.tcx.trait_is_auto(did) { | ^^^^^^^^^^^^^ error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:76:29 | 76 | start: Some(get_field("start", fields)?), | --------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<&rustc::hir::Expr>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Expr>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:76:29 | 76 | start: Some(get_field("start", fields)?), | --------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<utils::higher::Range<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<utils::higher::Range<'_>>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:82:29 | 82 | start: Some(get_field("start", fields)?), | --------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<&rustc::hir::Expr>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Expr>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:82:29 | 82 | start: Some(get_field("start", fields)?), | --------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<utils::higher::Range<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<utils::higher::Range<'_>>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:83:27 | 83 | end: Some(get_field("end", fields)?), | ------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<&rustc::hir::Expr>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Expr>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:83:27 | 83 | end: Some(get_field("end", fields)?), | ------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<utils::higher::Range<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<utils::higher::Range<'_>>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:88:29 | 88 | start: Some(get_field("start", fields)?), | --------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<&rustc::hir::Expr>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Expr>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:88:29 | 88 | start: Some(get_field("start", fields)?), | --------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<utils::higher::Range<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<utils::higher::Range<'_>>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:89:27 | 89 | end: Some(get_field("end", fields)?), | ------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<&rustc::hir::Expr>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Expr>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:89:27 | 89 | end: Some(get_field("end", fields)?), | ------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<utils::higher::Range<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<utils::higher::Range<'_>>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:95:27 | 95 | end: Some(get_field("end", fields)?), | ------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<&rustc::hir::Expr>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Expr>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:95:27 | 95 | end: Some(get_field("end", fields)?), | ------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<utils::higher::Range<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<utils::higher::Range<'_>>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:101:27 | 101 | end: Some(get_field("end", fields)?), | ------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<&rustc::hir::Expr>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Expr>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:101:27 | 101 | end: Some(get_field("end", fields)?), | ------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<utils::higher::Range<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<utils::higher::Range<'_>>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:51:21 | 51 | let expr = &fields.iter().find(|field| field.name.node == name)?.expr; | ---------------------------------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<&rustc::hir::Field>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Field>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/utils/higher.rs:51:21 | 51 | let expr = &fields.iter().find(|field| field.name.node == name)?.expr; | ---------------------------------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<&rustc::hir::Expr>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&rustc::hir::Expr>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:185:56 | 185 | }.and_then(|op| Some(format!("{}{}{}", self.snip(lhs)?, op, self.snip(rhs)?))) | --------------- | | | the `?` operator cannot be applied to type `std::option::Option<std::string::String>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::string::String>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:185:77 | 185 | }.and_then(|op| Some(format!("{}{}{}", self.snip(lhs)?, op, self.snip(rhs)?))) | --------------- | | | the `?` operator cannot be applied to type `std::option::Option<std::string::String>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::string::String>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:192:73 | 192 | .and_then(|(_, neg_method)| Some(format!("{}.{}()", self.snip(&args[0])?, neg_method))) | -------------------- | | | the `?` operator cannot be applied to type `std::option::Option<std::string::String>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::string::String>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:221:36 | 221 | let snip = self.snip(terminal)?; | -------------------- | | | the `?` operator cannot be applied to type `std::option::Option<std::string::String>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::string::String>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:221:36 | 221 | let snip = self.snip(terminal)?; | -------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<()>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<()>` = note: required by `std::ops::Try::from_error` error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:221:29 | 221 | let snip = self.snip(terminal)?; | ^^^^ `str` does not have a constant size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `str` = note: all local variables must have a statically known size error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:221:36 | 221 | let snip = self.snip(terminal)?; | ^^^^^^^^^^^^^^^^^^^^ `str` does not have a constant size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `str` = note: all local variables must have a statically known size error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:227:21 | 227 | self.recurse(inner)?; | -------------------- | | | the `?` operator cannot be applied to type `std::option::Option<()>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<()>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:253:28 | 253 | let snip = self.snip(self.terminals[n as usize])?; | -------------------------------------- | | | the `?` operator cannot be applied to type `std::option::Option<std::string::String>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<std::string::String>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:253:28 | 253 | let snip = self.snip(self.terminals[n as usize])?; | -------------------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<()>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<()>` = note: required by `std::ops::Try::from_error` error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:253:21 | 253 | let snip = self.snip(self.terminals[n as usize])?; | ^^^^ `str` does not have a constant size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `str` = note: all local variables must have a statically known size error[E0277]: the trait bound `str: std::marker::Sized` is not satisfied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/booleans.rs:253:28 | 253 | let snip = self.snip(self.terminals[n as usize])?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `str` does not have a constant size known at compile-time | = help: the trait `std::marker::Sized` is not implemented for `str` = note: all local variables must have a statically known size error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/copies.rs:182:91 | 182 | let eq = |&(lindex, lhs): &(usize, &Arm), &(rindex, rhs): &(usize, &Arm)| -> bool { | ___________________________________________________________________________________________^ 183 | | let min_index = usize::min(lindex, rindex); 184 | | let max_index = usize::max(lindex, rindex); 185 | | // Arms with a guard are ignored, those can’t always be merged together ... | 190 | | bindings(cx, &lhs.pats[0]) == bindings(cx, &rhs.pats[0]) 191 | | }; | |_________^ expected bool, found () | = note: expected type `bool` found type `()` error[E0599]: no method named `unpack` found for type `&rustc::ty::subst::Kind<'_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/derive.rs:152:73 | 152 | if let ty::subst::UnpackedKind::Type(subst) = subst.unpack() { | ^^^^^^ error[E0609]: no field `node` on type `syntax::ast::Visibility` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/enum_variants.rs:263:33 | 263 | if item.vis.node == VisibilityKind::Public { | ^^^^ error[E0609]: no field `node` on type `syntax::ast::Visibility` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/enum_variants.rs:287:39 | 287 | let lint = match item.vis.node { | ^^^^ error[E0061]: this function takes 5 parameters but 6 parameters were supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/escape.rs:75:29 | 75 | ExprUseVisitor::new(&mut v, cx.tcx, cx.param_env, region_scope_tree, cx.tables, None).consume_body(body); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 parameters error[E0599]: no method named `layout_of` found for type `&'a rustc::lint::LateContext<'a, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/escape.rs:168:21 | 168 | self.cx.layout_of(ty.boxed_ty()).ok().map_or(0, |l| l.size.bytes()) > self.too_large_for_stack | ^^^^^^^^^ error[E0599]: no method named `layout_of` found for type `&rustc::lint::LateContext<'_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/large_enum_variant.rs:68:28 | 68 | cx.layout_of(ty).ok().map(|l| l.size.bytes()) | ^^^^^^^^^ error[E0023]: this pattern has 5 fields, but the corresponding tuple variant has 4 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/len_zero.rs:71:13 | 71 | ItemTrait(_, _, _, _, ref trait_items) => check_trait_items(cx, item, trait_items), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 fields, found 5 error[E0609]: no field `generics` on type `&'tcx rustc::hir::ImplItem` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:69:59 | 69 | check_fn_inner(cx, &sig.decl, Some(id), &item.generics, item.span); | ^^^^^^^^ error[E0609]: no field `generics` on type `&'tcx rustc::hir::TraitItem` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:79:55 | 79 | check_fn_inner(cx, &sig.decl, body, &item.generics, item.span); | ^^^^^^^^ error[E0599]: no method named `ty_params` found for type `&'tcx rustc::hir::Generics` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:104:25 | 104 | for typ in generics.ty_params() { | ^^^^^^^^^ field, not a method | = help: did you mean to write `generics.ty_params` instead of `generics.ty_params(...)`? error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:114:24 | 114 | if let Some(ref params) = *params { | ^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `lifetimes` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:115:42 | 115 | for bound in &params.lifetimes { | ^^^^^^^^^ error[E0609]: no field `params` on type `&'tcx rustc::hir::Generics` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:125:52 | 125 | if could_use_elision(cx, decl, body, &generics.params, bounds_lts) { | ^^^^^^ error[E0599]: no method named `name` found for type `syntax_pos::symbol::Symbol` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:241:20 | 241 | if lt.name.name() != "'static" { | ^^^^ error[E0599]: no method named `name` found for type `syntax_pos::symbol::Symbol` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:242:43 | 242 | vec.push(RefLt::Named(lt.name.name())); | ^^^^ error[E0599]: no method named `name` found for type `syntax_pos::symbol::Symbol` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:272:24 | 272 | if lt.name.name() == "'static" { | ^^^^ error[E0599]: no method named `name` found for type `syntax_pos::symbol::Symbol` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:277:52 | 277 | self.lts.push(RefLt::Named(lt.name.name())); | ^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:293:16 | 293 | if let Some(ref last_path_segment) = last_path_segment(qpath).parameters { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:294:35 | 294 | if !last_path_segment.parenthesized && last_path_segment.lifetimes.is_empty() { | ^^^^^^^^^^^^^ error[E0609]: no field `bound_generic_params` on type `&rustc::hir::WhereBoundPredicate` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:370:58 | 370 | let allowed_lts = allowed_lts_from(&pred.bound_generic_params); | ^^^^^^^^^^^^^^^^^^^^ error[E0599]: no method named `name` found for type `syntax_pos::symbol::Symbol` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:405:40 | 405 | self.map.remove(&lifetime.name.name()); | ^^^^ error[E0599]: no method named `lifetimes` found for type `&'tcx rustc::hir::Generics` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:425:10 | 425 | .lifetimes() | ^^^^^^^^^ field, not a method | = help: did you mean to write `generics.lifetimes` instead of `generics.lifetimes(...)`? error[E0599]: no method named `name` found for type `syntax_pos::symbol::Symbol` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:445:26 | 445 | if lifetime.name.name() != keywords::Invalid.name() && lifetime.name.name() != "'static" { | ^^^^ error[E0599]: no method named `name` found for type `syntax_pos::symbol::Symbol` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lifetimes.rs:445:78 | 445 | if lifetime.name.name() != keywords::Invalid.name() && lifetime.name.name() != "'static" { | ^^^^ error[E0061]: this function takes 5 parameters but 6 parameters were supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/loops.rs:1483:25 | 1483 | ExprUseVisitor::new(&mut delegate, cx.tcx, cx.param_env, region_scope_tree, cx.tables, None).walk_expr(body); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 parameters error[E0609]: no field `label` on type `rustc::hir::Destination` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/loops.rs:1811:50 | 1811 | ExprBreak(dest, ref passed_expr) if dest.label.is_none() && passed_expr.is_none() => true, | ^^^^^ unknown field | = note: available fields are: `ident`, `target_id` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/map_clone.rs:106:33 | 106 | parameters: None, | ^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` = help: here are some functions which might fulfill your needs: - .unwrap() - .unwrap_or_default() error[E0560]: struct `rustc::hir::PathSegment` has no field named `infer_types` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/map_clone.rs:107:21 | 107 | infer_types: true, | ^^^^^^^^^^^^ `rustc::hir::PathSegment` does not have this field | = note: available fields are: `name`, `parameters` error[E0609]: no field `generics` on type `&'tcx rustc::hir::ImplItem` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/methods.rs:796:94 | 796 | self_kind.matches(first_arg_ty, first_arg, self_ty, false, &implitem.generics) { | ^^^^^^^^ error[E0609]: no field `generics` on type `&'tcx rustc::hir::ImplItem` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/methods.rs:813:101 | 813 | .any(|k| k.matches(first_arg_ty, first_arg, self_ty, is_copy, &implitem.generics)); | ^^^^^^^^ error[E0599]: no method named `rvalue_promotable_map` found for type `rustc::ty::TyCtxt<'_, '_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/methods.rs:919:33 | 919 | let promotable = cx.tcx.rvalue_promotable_map(owner_def).contains(&arg.hir_id.local_id); | ^^^^^^^^^^^^^^^^^^^^^ error[E0599]: no method named `next_point` found for type `&syntax::codemap::CodeMap` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/methods.rs:1171:54 | 1171 | let next_point = cx.sess().codemap().next_point(fold_args[0].span); | ^^^^^^^^^^ error[E0599]: no method named `ty_params` found for type `&rustc::hir::Generics` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/methods.rs:1968:18 | 1968 | generics.ty_params().any(|param| { | ^^^^^^^^^ field, not a method | = help: did you mean to write `generics.ty_params` instead of `generics.ty_params(...)`? error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/methods.rs:1973:32 | 1973 | if let Some(ref params) = s.parameters { | ^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/methods.rs:1974:39 | 1974 | if params.parenthesized { | ^^^^^^^^^^^^^ error[E0061]: this function takes 2 parameters but 1 parameter was supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/misc.rs:548:24 | 548 | .builtin_deref(true) | ^^^^ expected 2 parameters error[E0061]: this function takes 2 parameters but 1 parameter was supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/misc.rs:552:24 | 552 | .builtin_deref(true) | ^^^^ expected 2 parameters error[E0609]: no field `params` on type `&syntax::ast::Generics` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/misc_early.rs:191:27 | 191 | for param in &gen.params { | ^^^^^^ error[E0023]: this pattern has 5 fields, but the corresponding tuple variant has 4 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/misc_early.rs:299:24 | 299 | if let ExprKind::Closure(_, _, ref decl, ref block, _) = closure.node { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 fields, found 5 error[E0023]: this pattern has 5 fields, but the corresponding tuple variant has 4 fields --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/misc_early.rs:330:24 | 330 | if let ExprKind::Closure(_, _, _, _, _) = t.node; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 4 fields, found 5 error[E0599]: no associated item named `Usize` found for type `syntax::ast::UintTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/mutex_atomic.rs:72:47 | 72 | ty::TyUint(t) if t != ast::UintTy::Usize => span_lint(cx, MUTEX_INTEGER, expr.span, &msg), | ^^^^^^^^^^^^^^^^^^ error[E0599]: no associated item named `Isize` found for type `syntax::ast::IntTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/mutex_atomic.rs:73:46 | 73 | ty::TyInt(t) if t != ast::IntTy::Isize => span_lint(cx, MUTEX_INTEGER, expr.span, &msg), | ^^^^^^^^^^^^^^^^^ error[E0061]: this function takes 5 parameters but 6 parameters were supplied --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/needless_pass_by_value.rs:139:38 | 139 | euv::ExprUseVisitor::new(&mut ctx, cx.tcx, cx.param_env, region_scope_tree, cx.tables, None) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 parameters error[E0599]: no method named `as_ref` found for type `rustc::hir::PathParameters` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/needless_pass_by_value.rs:223:62 | 223 | .and_then(|ps| ps.parameters.as_ref()) | ^^^^^^ error[E0599]: no method named `non_enum_variant` found for type `&rustc::ty::AdtDef` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/needless_update.rs:38:40 | 38 | if fields.len() == def.non_enum_variant().fields.len() { | ^^^^^^^^^^^^^^^^ error[E0609]: no field `generics` on type `&rustc::hir::ImplItem` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/new_without_default.rs:106:38 | 106 | if impl_item.generics.params.iter().any(|gen| gen.is_type_param()) { | ^^^^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/ptr.rs:164:58 | 164 | if let Some(&PathSegment{parameters: Some(ref parameters), ..}) = path.segments.last(); | ^^^^^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `types` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/ptr.rs:165:35 | 165 | if parameters.types.len() == 1; | ^^^^^ error[E0599]: no method named `is_ascii` found for type `char` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/strings.rs:154:67 | 154 | if lit_content.as_str().chars().all(|c| c.is_ascii()) && !in_macro(args[0].span) { | ^^^^^^^^ | = help: items from traits can only be used if the trait is in scope = note: the following trait is implemented but not in scope, perhaps add a `use` for it: candidate #1: `use std::ascii::AsciiExt;` error[E0599]: no method named `layout_of` found for type `&rustc::lint::LateContext<'a, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/transmute.rs:223:37 | 223 | _ if cx.layout_of(from_ty).ok().map(|a| a.align.abi()) | ^^^^^^^^^ error[E0599]: no method named `layout_of` found for type `&rustc::lint::LateContext<'a, 'tcx>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/transmute.rs:224:38 | 224 | < cx.layout_of(to_ty).ok().map(|a| a.align.abi()) | ^^^^^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/transmute.rs:429:16 | 429 | if let Some(ref params) = seg.parameters; | ^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/transmute.rs:430:20 | 430 | if !params.parenthesized; | ^^^^^^^^^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:184:16 | 184 | if let Some(ref params) = last.parameters; | ^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:185:20 | 185 | if !params.parenthesized; | ^^^^^^^^^^^^^ error[E0599]: no method named `as_ref` found for type `rustc::hir::PathParameters` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:249:30 | 249 | .as_ref() | ^^^^^^ error[E0599]: no method named `as_ref` found for type `rustc::hir::PathParameters` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:257:26 | 257 | .as_ref() | ^^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:264:28 | 264 | if let Some(ref params) = seg.parameters { | ^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `types` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:265:42 | 265 | for ty in params.types.iter() { | ^^^^^ error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:292:24 | 292 | if let Some(ref params) = bx.parameters; | ^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:293:28 | 293 | if !params.parenthesized; | ^^^^^^^^^^^^^ error[E0599]: no method named `name` found for type `syntax_pos::symbol::Symbol` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:304:48 | 304 | format!("{} ", lt.name.name().as_str()) | ^^^^ error[E0599]: no associated item named `Isize` found for type `syntax::ast::IntTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:688:13 | 688 | IntTy::Isize => tcx.data_layout.pointer_size.bits(), | ^^^^^^^^^^^^ error[E0599]: no associated item named `Usize` found for type `syntax::ast::UintTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:696:13 | 696 | UintTy::Usize => tcx.data_layout.pointer_size.bits(), | ^^^^^^^^^^^^^ error[E0599]: no associated item named `Isize` found for type `syntax::ast::IntTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:709:19 | 709 | ty::TyInt(IntTy::Isize) | ty::TyUint(UintTy::Usize) => true, | ^^^^^^^^^^^^ error[E0599]: no associated item named `Usize` found for type `syntax::ast::UintTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:709:46 | 709 | ty::TyInt(IntTy::Isize) | ty::TyUint(UintTy::Usize) => true, | ^^^^^^^^^^^^^ error[E0609]: no field `bound_generic_params` on type `&rustc::hir::PolyTraitRef` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1104:40 | 1104 | .any(|bound| bound.bound_generic_params.iter().any(|gen| gen.is_lifetime_param())); | ^^^^^^^^^^^^^^^^^^^^ error[E0599]: no associated item named `Isize` found for type `syntax::ast::IntTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1323:21 | 1323 | (&ty::TyInt(IntTy::Isize), Integral(Isize(Is32(::std::i32::MIN)))) | | ^^^^^^^^^^^^ error[E0599]: no associated item named `Isize` found for type `syntax::ast::IntTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1324:21 | 1324 | (&ty::TyInt(IntTy::Isize), Integral(Isize(Is64(::std::i64::MIN)))) | | ^^^^^^^^^^^^ error[E0599]: no associated item named `Usize` found for type `syntax::ast::UintTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1330:22 | 1330 | (&ty::TyUint(UintTy::Usize), Integral(Usize(Us32(::std::u32::MIN)))) | | ^^^^^^^^^^^^^ error[E0599]: no associated item named `Usize` found for type `syntax::ast::UintTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1331:22 | 1331 | (&ty::TyUint(UintTy::Usize), Integral(Usize(Us64(::std::u64::MIN)))) | | ^^^^^^^^^^^^^ error[E0599]: no associated item named `Isize` found for type `syntax::ast::IntTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1339:21 | 1339 | (&ty::TyInt(IntTy::Isize), Integral(Isize(Is32(::std::i32::MAX)))) | | ^^^^^^^^^^^^ error[E0599]: no associated item named `Isize` found for type `syntax::ast::IntTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1340:21 | 1340 | (&ty::TyInt(IntTy::Isize), Integral(Isize(Is64(::std::i64::MAX)))) | | ^^^^^^^^^^^^ error[E0599]: no associated item named `Usize` found for type `syntax::ast::UintTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1346:22 | 1346 | (&ty::TyUint(UintTy::Usize), Integral(Usize(Us32(::std::u32::MAX)))) | | ^^^^^^^^^^^^^ error[E0599]: no associated item named `Usize` found for type `syntax::ast::UintTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1347:22 | 1347 | (&ty::TyUint(UintTy::Usize), Integral(Usize(Us64(::std::u64::MAX)))) | | ^^^^^^^^^^^^^ error[E0599]: no method named `layout_of` found for type `&rustc::lint::LateContext<'_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1482:15 | 1482 | if cx.layout_of(pre_cast_ty).ok().map(|l| l.size) == cx.layout_of(cast_ty).ok().map(|l| l.size) { | ^^^^^^^^^ error[E0599]: no method named `layout_of` found for type `&rustc::lint::LateContext<'_, '_>` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1482:65 | 1482 | if cx.layout_of(pre_cast_ty).ok().map(|l| l.size) == cx.layout_of(cast_ty).ok().map(|l| l.size) { | ^^^^^^^^^ error[E0599]: no associated item named `Isize` found for type `syntax::ast::IntTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1501:17 | 1501 | IntTy::Isize => (FullInt::S(isize::min_value() as i128), FullInt::S(isize::max_value() as i128)), | ^^^^^^^^^^^^ error[E0599]: no associated item named `Usize` found for type `syntax::ast::UintTy` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1518:17 | 1518 | UintTy::Usize => (FullInt::U(usize::min_value() as u128), FullInt::U(usize::max_value() as u128)), | ^^^^^^^^^^^^^ error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1726:76 | 1726 | .and_then(|snip| Some(item.span.lo() + BytePos(snip.find("impl")? as u32 + 4))) | ------------------ | | | the `?` operator cannot be applied to type `std::option::Option<usize>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<usize>` = note: required by `std::ops::Try::into_result` error[E0599]: no method named `data` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1728:55 | 1728 | Span::new(pos, pos, item.span.data().ctxt) | ^^^^ error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1758:45 | 1758 | let i = snip.find("fn")?; | ---------------- | | | the `?` operator cannot be applied to type `std::option::Option<usize>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<usize>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1759:72 | 1759 | Some(item.span.lo() + BytePos((i + (&snip[i..]).find('(')?) as u32)) | ----------------------- | | | the `?` operator cannot be applied to type `std::option::Option<usize>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<usize>` = note: required by `std::ops::Try::into_result` error[E0599]: no method named `data` found for type `syntax_pos::Span` in the current scope --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1762:59 | 1762 | Span::new(pos, pos, item.span.data().ctxt) | ^^^^ error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1797:27 | 1797 | let params = &path.segments.last().as_ref()?.parameters.as_ref()?.types; | ------------------------------ | | | the `?` operator cannot be applied to type `std::option::Option<&&rustc::hir::PathSegment>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<&&rustc::hir::PathSegment>` = note: required by `std::ops::Try::into_result` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1797:27 | 1797 | let params = &path.segments.last().as_ref()?.parameters.as_ref()?.types; | ------------------------------ | | | cannot use the `?` operator in a function that returns `std::option::Option<types::ImplicitHasherType<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<types::ImplicitHasherType<'_>>` = note: required by `std::ops::Try::from_error` error[E0277]: the `?` operator can only be used in a function that returns `Result` (or another type that implements `std::ops::Try`) --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/types.rs:1797:27 | 1797 | let params = &path.segments.last().as_ref()?.parameters.as_ref()?.types; | --------------------------------------------------- | | | cannot use the `?` operator in a function that returns `std::option::Option<types::ImplicitHasherType<'_>>` | in this macro invocation | = help: the trait `std::ops::Try` is not implemented for `std::option::Option<types::ImplicitHasherType<'_>>` = note: required by `std::ops::Try::from_error` error[E0609]: no field `label` on type `rustc::hir::Destination` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/unused_label.rs:72:110 | 72 | hir::ExprBreak(destination, _) | hir::ExprAgain(destination) => if let Some(label) = destination.label { | ^^^^^ unknown field | = note: available fields are: `ident`, `target_id` error[E0609]: no field `name` on type `syntax::codemap::Spanned<syntax_pos::symbol::Symbol>` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/unused_label.rs:76:42 | 76 | self.labels.insert(label.name.as_str(), expr.span); | ^^^^ unknown field | = note: available fields are: `node`, `span` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/use_self.rs:62:43 | 62 | let should_check = if let Some(ref params) = *parameters { | ^^^^^^^^^^^^^^^^ expected struct `rustc::hir::PathParameters`, found enum `std::option::Option` | = note: expected type `rustc::hir::PathParameters` found type `std::option::Option<_>` error[E0609]: no field `parenthesized` on type `&_` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/use_self.rs:63:29 | 63 | !params.parenthesized && params.lifetimes.len() == 0 | ^^^^^^^^^^^^^ error: aborting due to 178 previous errors error: Could not compile `clippy_lints`. Caused by: process didn't exit successfully: `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.187/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=8e0258d21c384dce -C extra-filename=-8e0258d21c384dce --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-4fe84c02a735c569.rlib --extern-version regex_syntax=regex-syntax,0.4.2 --extern url=/home/cratesfyi/cratesfyi/debug/deps/liburl-bae103a4d2fe2fa7.rlib --extern-version url=url,1.7.0 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-d78457efc2ee8353.rlib --extern-version lazy_static=lazy_static,1.0.0 --extern if_chain=/home/cratesfyi/cratesfyi/debug/deps/libif_chain-0604e6b6fde947ad.rlib --extern-version if_chain=if_chain,0.1.2 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-8c808e0cbe979d1a.rlib --extern-version itertools=itertools,0.6.5 --extern unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-33cbffd18eedd627.rlib --extern-version serde=serde,1.0.27 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-f976b5d07a1d7005.so --extern-version serde_derive=serde_derive,1.0.27 --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 --cap-lints allow` (exit code: 101) thread 'main' panicked at 'build failed', src/bin/cratesfyi.rs:142 note: Run with `RUST_BACKTRACE=1` for a backtrace.