clippy 0.0.122

A bunch of helpful lints to avoid common pitfalls in Rust
Build #46059 2017-04-07T09:50:25.919298+00:00
# rustc version
rustc 1.17.0-nightly (134c4a0f0 2017-03-20)# docs.rs version
cratesfyi 0.3.2 (56e5d46 2017-03-20)# build log
Build failed, waiting for other jobs to finish...
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading clippy v0.0.122
Compiling quote v0.3.15
Compiling unicode-normalization v0.1.4
Compiling matches v0.1.4
Compiling serde v0.9.13
Compiling num-traits v0.1.37
Compiling rustc-serialize v0.3.23
Compiling quine-mc_cluskey v0.2.4
Compiling dtoa v0.4.1
Running `rustc --crate-name quote .cargo/registry/src/github.com-1ecc6299db9ec823/quote-0.3.15/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=565e17019bbf404d -C extra-filename=-565e17019bbf404d --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Running `rustc --crate-name unicode_normalization .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-normalization-0.1.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=0297b14f098a4d93 -C extra-filename=-0297b14f098a4d93 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Running `rustc --crate-name matches .cargo/registry/src/github.com-1ecc6299db9ec823/matches-0.1.4/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=8f1598a59712d6cc -C extra-filename=-8f1598a59712d6cc --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Running `rustc --crate-name serde .cargo/registry/src/github.com-1ecc6299db9ec823/serde-0.9.13/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="std"' --cfg 'feature="default"' -C metadata=4088b87365aa34a0 -C extra-filename=-4088b87365aa34a0 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Running `rustc --crate-name num_traits .cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.1.37/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=69f4129d46397118 -C extra-filename=-69f4129d46397118 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Running `rustc --crate-name rustc_serialize .cargo/registry/src/github.com-1ecc6299db9ec823/rustc-serialize-0.3.23/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=54d2bf33b1d4b0b0 -C extra-filename=-54d2bf33b1d4b0b0 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Running `rustc --crate-name quine_mc_cluskey .cargo/registry/src/github.com-1ecc6299db9ec823/quine-mc_cluskey-0.2.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=9702e7983e184bea -C extra-filename=-9702e7983e184bea --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Running `rustc --crate-name dtoa .cargo/registry/src/github.com-1ecc6299db9ec823/dtoa-0.4.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=14210f5fcc36f62c -C extra-filename=-14210f5fcc36f62c --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Compiling semver-parser v0.7.0
Running `rustc --crate-name semver_parser .cargo/registry/src/github.com-1ecc6299db9ec823/semver-parser-0.7.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=df3c236d49c7b60f -C extra-filename=-df3c236d49c7b60f --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Compiling regex-syntax v0.4.0
Running `rustc --crate-name regex_syntax .cargo/registry/src/github.com-1ecc6299db9ec823/regex-syntax-0.4.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=21fcdc3a2a66b202 -C extra-filename=-21fcdc3a2a66b202 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Compiling unicode-xid v0.0.4
Running `rustc --crate-name unicode_xid .cargo/registry/src/github.com-1ecc6299db9ec823/unicode-xid-0.0.4/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=0718538d6479f922 -C extra-filename=-0718538d6479f922 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Compiling synom v0.11.3
Running `rustc --crate-name synom .cargo/registry/src/github.com-1ecc6299db9ec823/synom-0.11.3/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=1fddc0802262e2b9 -C extra-filename=-1fddc0802262e2b9 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern unicode_xid=/home/cratesfyi/clippy-0.0.122/debug/deps/libunicode_xid-0718538d6479f922.rlib --cap-lints allow`
Compiling syn v0.11.10
Running `rustc --crate-name syn .cargo/registry/src/github.com-1ecc6299db9ec823/syn-0.11.10/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="unicode-xid"' --cfg 'feature="visit"' --cfg 'feature="printing"' --cfg 'feature="parsing"' --cfg 'feature="synom"' --cfg 'feature="quote"' --cfg 'feature="default"' -C metadata=dc619c6825c0fb37 -C extra-filename=-dc619c6825c0fb37 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern quote=/home/cratesfyi/clippy-0.0.122/debug/deps/libquote-565e17019bbf404d.rlib --extern synom=/home/cratesfyi/clippy-0.0.122/debug/deps/libsynom-1fddc0802262e2b9.rlib --extern unicode_xid=/home/cratesfyi/clippy-0.0.122/debug/deps/libunicode_xid-0718538d6479f922.rlib --cap-lints allow`
Compiling itoa v0.3.1
Running `rustc --crate-name itoa .cargo/registry/src/github.com-1ecc6299db9ec823/itoa-0.3.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=7224f7b9cf4017b1 -C extra-filename=-7224f7b9cf4017b1 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --cap-lints allow`
Compiling semver v0.6.0
Running `rustc --crate-name semver .cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.6.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' -C metadata=a755b7ebf243aa54 -C extra-filename=-a755b7ebf243aa54 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern semver_parser=/home/cratesfyi/clippy-0.0.122/debug/deps/libsemver_parser-df3c236d49c7b60f.rlib --cap-lints allow`
Compiling serde_codegen_internals v0.14.2
Running `rustc --crate-name serde_codegen_internals .cargo/registry/src/github.com-1ecc6299db9ec823/serde_codegen_internals-0.14.2/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=d56dd4dc3a22cef8 -C extra-filename=-d56dd4dc3a22cef8 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern syn=/home/cratesfyi/clippy-0.0.122/debug/deps/libsyn-dc619c6825c0fb37.rlib --cap-lints allow`
Compiling toml v0.2.1
Running `rustc --crate-name toml .cargo/registry/src/github.com-1ecc6299db9ec823/toml-0.2.1/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="rustc-serialize"' -C metadata=94ea404b50476639 -C extra-filename=-94ea404b50476639 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern rustc_serialize=/home/cratesfyi/clippy-0.0.122/debug/deps/librustc_serialize-54d2bf33b1d4b0b0.rlib --cap-lints allow`
Compiling serde_json v0.9.9
Running `rustc --crate-name serde_json .cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-0.9.9/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=523da6ef63875c40 -C extra-filename=-523da6ef63875c40 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern itoa=/home/cratesfyi/clippy-0.0.122/debug/deps/libitoa-7224f7b9cf4017b1.rlib --extern serde=/home/cratesfyi/clippy-0.0.122/debug/deps/libserde-4088b87365aa34a0.rlib --extern dtoa=/home/cratesfyi/clippy-0.0.122/debug/deps/libdtoa-14210f5fcc36f62c.rlib --extern num_traits=/home/cratesfyi/clippy-0.0.122/debug/deps/libnum_traits-69f4129d46397118.rlib --cap-lints allow`
Compiling clippy_lints v0.0.122
Running `rustc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=c51efc3e3a967e0c -C extra-filename=-c51efc3e3a967e0c --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern quine_mc_cluskey=/home/cratesfyi/clippy-0.0.122/debug/deps/libquine_mc_cluskey-9702e7983e184bea.rlib --extern regex_syntax=/home/cratesfyi/clippy-0.0.122/debug/deps/libregex_syntax-21fcdc3a2a66b202.rlib --extern matches=/home/cratesfyi/clippy-0.0.122/debug/deps/libmatches-8f1598a59712d6cc.rlib --extern semver=/home/cratesfyi/clippy-0.0.122/debug/deps/libsemver-a755b7ebf243aa54.rlib --extern toml=/home/cratesfyi/clippy-0.0.122/debug/deps/libtoml-94ea404b50476639.rlib --extern unicode_normalization=/home/cratesfyi/clippy-0.0.122/debug/deps/libunicode_normalization-0297b14f098a4d93.rlib --cap-lints allow`
Compiling serde_derive v0.9.13
Running `rustc --crate-name serde_derive .cargo/registry/src/github.com-1ecc6299db9ec823/serde_derive-0.9.13/src/lib.rs --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 -C metadata=0e7b8f0eba9530b3 -C extra-filename=-0e7b8f0eba9530b3 --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern quote=/home/cratesfyi/clippy-0.0.122/debug/deps/libquote-565e17019bbf404d.rlib --extern serde_codegen_internals=/home/cratesfyi/clippy-0.0.122/debug/deps/libserde_codegen_internals-d56dd4dc3a22cef8.rlib --extern syn=/home/cratesfyi/clippy-0.0.122/debug/deps/libsyn-dc619c6825c0fb37.rlib --cap-lints allow`
error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/consts.rs:248:80
|
248 |             ExprIf(ref cond, ref then, ref otherwise) => self.ifthenelse(cond, then, otherwise),
|                                                                                ^^^^ expected struct `rustc::hir::Expr`, found struct `rustc::hir::Block`
|
= note: expected type `&syntax::ptr::P<rustc::hir::Expr>`
found type `&syntax::ptr::P<rustc::hir::Block>`
= help: here are some functions which might fulfill your needs:
- .unwrap()

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/mod.rs:100:9
|
100 |     rhs.ctxt != lhs.ctxt
|         ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/mod.rs:100:21
|
100 |     rhs.ctxt != lhs.ctxt
|                     ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/mod.rs:115:10
|
115 |     span.ctxt.outer().expn_info().map_or(false, |info| {
|          ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/mod.rs:141:10
|
141 |     span.ctxt.outer().expn_info().map_or(false, |info| in_macro_ext(cx, &info))
|          ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/mod.rs:693:35
|
693 |         let span_name_span = span.ctxt.outer()
|                                   ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/mod.rs:712:31
|
712 |     let span_name_span = span.ctxt.outer()
|                               ^^^^ did you mean `lo`?

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/hir.rs:100:58
|
100 |                     self.eq_expr(lc, rc) && self.eq_expr(&**lt, &**rt) && both(le, re, |l, r| self.eq_expr(l, r))
|                                                          ^^^^^ expected struct `rustc::hir::Expr`, found struct `rustc::hir::Block`
|
= note: expected type `&rustc::hir::Expr`
found type `&rustc::hir::Block`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/hir.rs:100:65
|
100 |                     self.eq_expr(lc, rc) && self.eq_expr(&**lt, &**rt) && both(le, re, |l, r| self.eq_expr(l, r))
|                                                                 ^^^^^ expected struct `rustc::hir::Expr`, found struct `rustc::hir::Block`
|
= note: expected type `&rustc::hir::Expr`
found type `&rustc::hir::Block`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/hir.rs:398:32
|
398 |                 self.hash_expr(&**t);
|                                ^^^^ expected struct `rustc::hir::Expr`, found struct `rustc::hir::Block`
|
= note: expected type `&rustc::hir::Expr`
found type `&rustc::hir::Block`

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/utils/internal_lints.rs:131:39
|
131 |             let lint_span = lint_span.ctxt.outer().expn_info().map(|ei| ei.call_site).expect("unable to get call_site");
|                                       ^^^^ did you mean `lo`?

error[E0277]: the trait bound `syntax::ast::Symbol: core::cmp::PartialEq<collections::string::String>` is not satisfied
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/blacklisted_name.rs:43:46
|
43 |             if self.blacklist.iter().any(|s| ident.node == *s) {
|                                              ^^^^^^^^^^^^^^^^ the trait `core::cmp::PartialEq<collections::string::String>` is not implemented for `syntax::ast::Symbol`
|
= help: the following implementations were found:
<syntax::ast::Symbol as core::cmp::PartialEq<&'a str>>
<syntax::ast::Symbol as core::cmp::PartialEq>

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/collapsible_if.rs:128:22
|
124 |     if_let_chain! {[
|     - in this macro invocation
...
128 |         if expr.span.ctxt != inner.span.ctxt {
|                      ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/collapsible_if.rs:128:41
|
124 |     if_let_chain! {[
|     - in this macro invocation
...
128 |         if expr.span.ctxt != inner.span.ctxt {
|                                         ^^^^ did you mean `lo`?

error: no field `node` on type `&syntax::ptr::P<rustc::hir::Block>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/copies.rs:230:49
|
230 |         if let ExprBlock(ref block) = then_expr.node {
|                                                 ^^^^

error: no field `node` on type `&syntax::ptr::P<rustc::hir::Block>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/entry.rs:51:71
|
51 |                         if let ExprBlock(ref then_block) = then_block.node {
|                                                                       ^^^^

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/entry.rs:67:45
|
67 |                     walk_expr(&mut visitor, &**then_block);
|                                             ^^^^^^^^^^^^^ expected struct `rustc::hir::Expr`, found struct `rustc::hir::Block`
|
= note: expected type `&rustc::hir::Expr`
found type `&rustc::hir::Block`

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/formatting.rs:103:68
|
103 |             let eq_span = Span { lo: lhs.span.hi, hi: rhs.span.lo, ctxt: NO_EXPANSION };
|                                                                    ^^^^^ `syntax_pos::Span` does not have this field

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/formatting.rs:107:81
|
107 |                     let eqop_span= Span { lo: lhs.span.hi, hi: sub_rhs.span.lo, ctxt: NO_EXPANSION };
|                                                                                 ^^^^^ `syntax_pos::Span` does not have this field

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/formatting.rs:130:73
|
130 |             let else_span = Span { lo: then.span.hi, hi: else_.span.lo, ctxt: NO_EXPANSION };
|                                                                         ^^^^^ `syntax_pos::Span` does not have this field

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/formatting.rs:157:78
|
157 |                     let space_span = Span { lo: lhs.span.hi, hi: op.span.lo, ctxt: NO_EXPANSION };
|                                                                              ^^^^^ `syntax_pos::Span` does not have this field

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/formatting.rs:159:82
|
159 |                         let lint_span = Span { lo: lhs.span.hi, hi: lhs.span.hi, ctxt: NO_EXPANSION };
|                                                                                  ^^^^^ `syntax_pos::Span` does not have this field

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/formatting.rs:180:71
|
180 |         let else_span = Span { lo: first.span.hi, hi: second.span.lo, ctxt: NO_EXPANSION };
|                                                                       ^^^^^ `syntax_pos::Span` does not have this field

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/if_let_redundant_pattern_matching.rs:78:25
|
78 |                         ctxt: expr.span.ctxt,
|                         ^^^^^ `syntax_pos::Span` does not have this field

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/if_let_redundant_pattern_matching.rs:78:41
|
78 |                         ctxt: expr.span.ctxt,
|                                         ^^^^ did you mean `lo`?

error: no field `node` on type `&syntax::ptr::P<rustc::hir::Block>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/let_if_seq.rs:72:53
|
64  |             if_let_chain! {[
|             - in this macro invocation
...
72  |                 let hir::ExprBlock(ref then) = then.node,
|                                                     ^^^^

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/let_if_seq.rs:76:70
|
76 |                 let span = Span { lo: stmt.span.lo, hi: if_.span.hi, ctxt: NO_EXPANSION };
|                                                                      ^^^^^ `syntax_pos::Span` does not have this field

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/loops.rs:669:31
|
669 |             if method_name == "iter" || method_name == "iter_mut" {
|                               ^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/loops.rs:669:56
|
669 |             if method_name == "iter" || method_name == "iter_mut" {
|                                                        ^^^^^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/loops.rs:673:38
|
673 |             } else if method_name == "into_iter" && match_trait_method(cx, arg, &paths::INTO_ITERATOR) {
|                                      ^^^^^^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/loops.rs:694:38
|
694 |             } else if method_name == "next" && match_trait_method(cx, arg, &paths::ITERATOR) {
|                                      ^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/methods.rs:1068:42
|
1068 |         let same_span = map_args[1].span.ctxt == unwrap_args[1].span.ctxt;
|                                          ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/methods.rs:1068:70
|
1068 |         let same_span = map_args[1].span.ctxt == unwrap_args[1].span.ctxt;
|                                                                      ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/methods.rs:1097:42
|
1097 |         let same_span = map_args[1].span.ctxt == unwrap_args[1].span.ctxt;
|                                          ^^^^ did you mean `lo`?

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/methods.rs:1097:70
|
1097 |         let same_span = map_args[1].span.ctxt == unwrap_args[1].span.ctxt;
|                                                                      ^^^^ did you mean `lo`?

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/misc.rs:309:36
|
309 |                         if name == "eq" || name == "ne" || name == "is_nan" || name.starts_with("eq_") ||
|                                    ^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/misc.rs:309:52
|
309 |                         if name == "eq" || name == "ne" || name == "is_nan" || name.starts_with("eq_") ||
|                                                    ^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/misc.rs:309:68
|
309 |                         if name == "eq" || name == "ne" || name == "is_nan" || name.starts_with("eq_") ||
|                                                                    ^^^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/misc.rs:338:32
|
338 |                     binding != "_result" && // FIXME: #944
|                                ^^^^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/misc.rs:429:24
|
429 |             if name == "to_string" || name == "to_owned" && is_str_arg(cx, args) {
|                        ^^^^^^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/misc.rs:429:47
|
429 |             if name == "to_string" || name == "to_owned" && is_str_arg(cx, args) {
|                                               ^^^^^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/misc.rs:502:15
|
502 |     expr.span.ctxt.outer().expn_info().map_or(false, |info| {
|               ^^^^ did you mean `lo`?

error: no field `node` on type `&syntax::ptr::P<rustc::hir::Block>`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/needless_bool.rs:79:59
|
79 |             if let ExprBlock(ref then_block) = then_block.node {
|                                                           ^^^^

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/ranges.rs:55:24
|
55 |             if name == "step_by" && args.len() == 2 && has_step_by(cx, &args[0]) && is_integer_literal(&args[1], 0) {
|                        ^^^^^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/ranges.rs:61:31
|
61 |             } else if name == "zip" && args.len() == 2 {
|                               ^^^^^ expected struct `syntax::symbol::InternedString`, found reference
|
= note: expected type `syntax::symbol::InternedString`
found type `&'static str`

error[E0308]: mismatched types
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/shadow.rs:308:28
|
308 |             check_expr(cx, &**then, bindings);
|                            ^^^^^^^ expected struct `rustc::hir::Expr`, found struct `rustc::hir::Block`
|
= note: expected type `&rustc::hir::Expr`
found type `&rustc::hir::Block`

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/swap.rs:125:69
|
125 |             let span = Span { lo: w[0].span.lo, hi: second.span.hi, ctxt: NO_EXPANSION};
|                                                                     ^^^^^ `syntax_pos::Span` does not have this field

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/swap.rs:164:69
|
164 |             let span = Span{ lo: first.span.lo, hi: second.span.hi, ctxt: NO_EXPANSION};
|                                                                     ^^^^^ `syntax_pos::Span` does not have this field

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/vec.rs:53:33
|
47 |           if_let_chain!{[
|  _________- starting here...
48 | |             let Some((_, arg, _)) = higher::for_loop(expr),
49 | |             let Some(vec_args) = higher::vec_macro(cx, arg),
50 | |             is_copy(cx, vec_type(cx.tables.expr_ty_adjusted(arg)), cx.tcx.hir.get_parent(expr.id)),
51 | |         ], {
52 | |             // report the error around the `vec!` not inside `<std macros>:`
53 | |             let span = arg.span.ctxt.outer().expn_info().map(|info| info.call_site).expect("unable to get call_site");
| |                                 ^^^^ did you mean `lo`?
54 | |             check_vec_macro(cx, &vec_args, span);
55 | |         }}
| |__________- ...ending here: in this macro invocation

error[E0560]: struct `syntax_pos::Span` has no field named `ctxt`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/vec.rs:73:21
|
73 |                     ctxt: args[0].span.ctxt,
|                     ^^^^^ `syntax_pos::Span` does not have this field

error: no field `ctxt` on type `syntax_pos::Span`
--> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.122/src/vec.rs:73:40
|
73 |                     ctxt: args[0].span.ctxt,
|                                        ^^^^ did you mean `lo`?

error: aborting due to 51 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.122/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=c51efc3e3a967e0c -C extra-filename=-c51efc3e3a967e0c --out-dir /home/cratesfyi/clippy-0.0.122/debug/deps -L dependency=/home/cratesfyi/clippy-0.0.122/debug/deps --extern quine_mc_cluskey=/home/cratesfyi/clippy-0.0.122/debug/deps/libquine_mc_cluskey-9702e7983e184bea.rlib --extern regex_syntax=/home/cratesfyi/clippy-0.0.122/debug/deps/libregex_syntax-21fcdc3a2a66b202.rlib --extern matches=/home/cratesfyi/clippy-0.0.122/debug/deps/libmatches-8f1598a59712d6cc.rlib --extern semver=/home/cratesfyi/clippy-0.0.122/debug/deps/libsemver-a755b7ebf243aa54.rlib --extern toml=/home/cratesfyi/clippy-0.0.122/debug/deps/libtoml-94ea404b50476639.rlib --extern unicode_normalization=/home/cratesfyi/clippy-0.0.122/debug/deps/libunicode_normalization-0297b14f098a4d93.rlib --cap-lints allow` (exit code: 101)
thread 'main' panicked at 'build failed', src/bin/cratesfyi.rs:136
note: Run with `RUST_BACKTRACE=1` for a backtrace.