Build #74958 2017-10-31T20:29:34.577869+00:00
# rustc version
rustc 1.22.0-dev (b1cfd1750 2017-09-21)# docs.rs version
cratesfyi 0.4.2 (13da7b2 2017-10-12)# build log
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading clippy v0.0.168
Fresh unicode-normalization v0.1.5
Fresh getopts v0.2.15
Fresh itoa v0.3.4
Fresh lazy_static v0.2.9
Fresh matches v0.1.6
Fresh num-traits v0.1.40
Fresh serde v1.0.17
Fresh either v1.3.0
Fresh regex-syntax v0.4.1
Fresh unicode-xid v0.0.4
Fresh quine-mc_cluskey v0.2.4
Fresh unicode-bidi v0.3.4
Fresh quote v0.3.15
Compiling clippy v0.0.168
Fresh bitflags v0.9.1
Fresh dtoa v0.4.2
Fresh itertools v0.6.5
Fresh percent-encoding v1.0.0
Fresh idna v0.1.4
Fresh if_chain v0.1.2
Fresh toml v0.4.5
Running `rustc --crate-name build_script_build .cargo/registry/src/github.com-1ecc6299db9ec823/clippy-0.0.168/build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=699ed3552c7fca20 -C extra-filename=-699ed3552c7fca20 --out-dir /home/cratesfyi/cratesfyi/debug/build/clippy-699ed3552c7fca20 -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow`
Fresh pulldown-cmark v0.0.15
Fresh serde_json v1.0.5
Fresh semver-parser v0.7.0
Fresh synom v0.11.3
Fresh semver v0.6.0
Fresh syn v0.11.11
Fresh serde_derive_internals v0.16.0
Fresh serde_derive v1.0.17
Compiling cargo_metadata v0.2.3
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_json=/home/cratesfyi/cratesfyi/debug/deps/libserde_json-f843437909923d1b.rlib --extern-version serde_json=serde_json,1.0.5 --extern serde=/home/cratesfyi/cratesfyi/debug/deps/libserde-497e9d845d3940a7.rlib --extern-version serde=serde,1.0.17 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-15051e31452927c9.so --extern-version serde_derive=serde_derive,1.0.17 --cap-lints allow`
Fresh url v1.6.0
Compiling clippy_lints v0.0.168
Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=3ca853e609cda070 -C extra-filename=-3ca853e609cda070 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern url=/home/cratesfyi/cratesfyi/debug/deps/liburl-8abcab8b95ef60ec.rlib --extern-version url=url,1.6.0 --extern quine_mc_cluskey=/home/cratesfyi/cratesfyi/debug/deps/libquine_mc_cluskey-6d8f73fdf7c11d33.rlib --extern-version quine_mc_cluskey=quine-mc_cluskey,0.2.4 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-15051e31452927c9.so --extern-version serde_derive=serde_derive,1.0.17 --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-8c808e0cbe979d1a.rlib --extern-version itertools=itertools,0.6.5 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --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-497e9d845d3940a7.rlib --extern-version serde=serde,1.0.17 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-5b85fba9276a8257.rlib --extern-version lazy_static=lazy_static,0.2.9 --extern if_chain=/home/cratesfyi/cratesfyi/debug/deps/libif_chain-0604e6b6fde947ad.rlib --extern-version if_chain=if_chain,0.1.2 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --cap-lints allow`
error: expected one of `)` or `,`, found `=`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/loops.rs:1625:34
|
1625 | ty::TyArray(_, n) => (0..=32).contains(const_to_u64(n)),
| ^ expected one of `)` or `,` here
Running `/home/cratesfyi/cratesfyi/debug/build/clippy-699ed3552c7fca20/build-script-build`
error[E0408]: variable `DotDotEq` is not bound in all patterns
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/utils/sugg.rs:365:9
|
365 | DotDot | DotDotEq => Associativity::None,
| ^^^^^^ -------- variable not in all patterns
| |
| pattern doesn't bind `DotDotEq`
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.168/src/utils/mod.rs:927:9
|
927 | Def::TyForeign(id) |
| ^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/utils/hir_utils.rs:221:15
|
221 | (&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.168/src/utils/hir_utils.rs:221:22
|
221 | (&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.168/src/utils/hir_utils.rs:222:15
|
222 | (&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.168/src/utils/hir_utils.rs:222:29
|
222 | (&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[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.168/src/utils/sugg.rs:129:74
|
129 | 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.168/src/utils/sugg.rs:168:52
|
168 | 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.168/src/utils/sugg.rs:315:9
|
315 | AssocOp::DotDotEq => format!("{}..={}", lhs, rhs),
| ^^^^^^^^^^^^^^^^^
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.168/src/utils/higher.rs:79:29
|
79 | 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.168/src/utils/higher.rs:79:29
|
79 | 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.168/src/utils/higher.rs:85:29
|
85 | 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.168/src/utils/higher.rs:85:29
|
85 | 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.168/src/utils/higher.rs:86:27
|
86 | 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.168/src/utils/higher.rs:86:27
|
86 | 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.168/src/utils/higher.rs:91:29
|
91 | 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.168/src/utils/higher.rs:91:29
|
91 | 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.168/src/utils/higher.rs:92:27
|
92 | 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.168/src/utils/higher.rs:92:27
|
92 | 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.168/src/utils/higher.rs:98:27
|
98 | 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.168/src/utils/higher.rs:98:27
|
98 | 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.168/src/utils/higher.rs:104:27
|
104 | 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.168/src/utils/higher.rs:104:27
|
104 | 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.168/src/utils/higher.rs:51:21
|
51 | let expr = &fields
| _____________________-
| |_____________________|
| ||
52 | || .iter()
53 | || .find(|field| field.name.node == name)?
| || -
| ||___________________________________________________|
| |____________________________________________________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.168/src/utils/higher.rs:51:21
|
51 | let expr = &fields
| _____________________-
| |_____________________|
| ||
52 | || .iter()
53 | || .find(|field| field.name.node == name)?
| || -
| ||___________________________________________________|
| |____________________________________________________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[E0061]: this function takes 5 parameters but 6 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/escape.rs:74:29
|
74 | ExprUseVisitor::new(&mut v, cx.tcx, cx.param_env, region_scope_tree, cx.tables, None).consume_body(body);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 parameters
error[E0609]: no field `generics` on type `&'tcx rustc::hir::ImplItem`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/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.168/src/lifetimes.rs:79:55
|
79 | check_fn_inner(cx, &sig.decl, body, &item.generics, item.span);
| ^^^^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/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.168/src/lifetimes.rs:115:42
|
115 | for bound in ¶ms.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.168/src/lifetimes.rs:229:62
|
229 | allowed_lts.insert(RefLt::Named(lt.lifetime.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.168/src/lifetimes.rs:239:20
|
239 | 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.168/src/lifetimes.rs:240:43
|
240 | 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.168/src/lifetimes.rs:270:24
|
270 | 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.168/src/lifetimes.rs:275:52
|
275 | self.lts.push(RefLt::Named(lt.name.name()));
| ^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/lifetimes.rs:291:16
|
291 | 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.168/src/lifetimes.rs:292:35
|
292 | if !last_path_segment.parenthesized && last_path_segment.lifetimes.is_empty() {
| ^^^^^^^^^^^^^
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.168/src/lifetimes.rs:401:40
|
401 | self.map.remove(&lifetime.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.168/src/lifetimes.rs:420:37
|
420 | .map(|lt| (lt.lifetime.name.name(), lt.lifetime.span))
| ^^^^
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.168/src/lifetimes.rs:439:26
|
439 | 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.168/src/lifetimes.rs:439:78
|
439 | 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.168/src/loops.rs:1411:25
|
1411 | ExprUseVisitor::new(&mut delegate, cx.tcx, cx.param_env, region_scope_tree, cx.tables, None).walk_expr(body);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 5 parameters
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/map_clone.rs:104:33
|
104 | 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.168/src/map_clone.rs:105:21
|
105 | 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.168/src/methods.rs:749:93
|
749 | 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.168/src/methods.rs:763:118
|
763 | if !self_kinds.iter().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.168/src/methods.rs:870:14
|
870 | .rvalue_promotable_map(owner_def)
| ^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/methods.rs:1738:44
|
1738 | 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.168/src/methods.rs:1739:51
|
1739 | if params.parenthesized {
| ^^^^^^^^^^^^^
error[E0061]: this function takes 5 parameters but 6 parameters were supplied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/needless_pass_by_value.rs:112:38
|
112 | euv::ExprUseVisitor::new(&mut ctx, cx.tcx, cx.param_env, region_scope_tree, cx.tables, None).consume_body(body);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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.168/src/needless_pass_by_value.rs:177:62
|
177 | .and_then(|ps| ps.parameters.as_ref())
| ^^^^^^
error[E0609]: no field `generics` on type `&rustc::lint::LateContext<'a, 'tcx>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/new_without_default.rs:111:20
|
111 | if !cx.generics.expect("method must have generics").ty_params.is_empty() {
| ^^^^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/ptr.rs:161:58
|
161 | 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.168/src/ptr.rs:162:35
|
162 | if parameters.types.len() == 1;
| ^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/transmute.rs:305:16
|
305 | 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.168/src/transmute.rs:306:20
|
306 | if !params.parenthesized;
| ^^^^^^^^^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/types.rs:162:32
|
162 | 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.168/src/types.rs:163:36
|
163 | 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.168/src/types.rs:193:30
|
193 | .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.168/src/types.rs:201:26
|
201 | .as_ref()
| ^^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/types.rs:208:28
|
208 | 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.168/src/types.rs:209:42
|
209 | for ty in params.types.iter() {
| ^^^^^
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/types.rs:236:24
|
236 | 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.168/src/types.rs:237:28
|
237 | 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.168/src/types.rs:248:48
|
248 | format!("{} ", lt.name.name().as_str())
| ^^^^
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.168/src/types.rs:1553:76
|
1553 | .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.168/src/types.rs:1555:55
|
1555 | 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.168/src/types.rs:1585:45
|
1585 | 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.168/src/types.rs:1586:72
|
1586 | 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.168/src/types.rs:1589:59
|
1589 | 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.168/src/types.rs:1625:27
|
1625 | 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.168/src/types.rs:1625:27
|
1625 | 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.168/src/types.rs:1625:27
|
1625 | 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[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/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.168/src/use_self.rs:63:29
|
63 | !params.parenthesized && params.lifetimes.len() == 0
| ^^^^^^^^^^^^^
error: aborting due to 76 previous errors
thread 'main' panicked at 'ChainedError {
error: Could not compile `clippy_lints`.,
cause: process didn't exit successfully: `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.168/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=3ca853e609cda070 -C extra-filename=-3ca853e609cda070 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern url=/home/cratesfyi/cratesfyi/debug/deps/liburl-8abcab8b95ef60ec.rlib --extern-version url=url,1.6.0 --extern quine_mc_cluskey=/home/cratesfyi/cratesfyi/debug/deps/libquine_mc_cluskey-6d8f73fdf7c11d33.rlib --extern-version quine_mc_cluskey=quine-mc_cluskey,0.2.4 --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-15051e31452927c9.so --extern-version serde_derive=serde_derive,1.0.17 --extern matches=/home/cratesfyi/cratesfyi/debug/deps/libmatches-e2a43ce3f52b9dcc.rlib --extern-version matches=matches,0.1.6 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-8c808e0cbe979d1a.rlib --extern-version itertools=itertools,0.6.5 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15 --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-497e9d845d3940a7.rlib --extern-version serde=serde,1.0.17 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-5b85fba9276a8257.rlib --extern-version lazy_static=lazy_static,0.2.9 --extern if_chain=/home/cratesfyi/cratesfyi/debug/deps/libif_chain-0604e6b6fde947ad.rlib --extern-version if_chain=if_chain,0.1.2 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern toml=/home/cratesfyi/cratesfyi/debug/deps/libtoml-43a73e8f4c70aac5.rlib --extern-version toml=toml,0.4.5 --cap-lints allow` (exit code: 101)
}', src/bin/cratesfyi.rs:142
note: Run with `RUST_BACKTRACE=1` for a backtrace.