clippy_lints 0.0.123

A bunch of helpful lints to avoid common pitfalls in Rust

Build #46452 2017-04-12 10:02:13

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.17.0-nightly (134c4a0f0 2017-03-20)

# docs.rs version cratesfyi 0.3.2 (56e5d46 2017-03-20)

# build log Updating registry `https://github.com/rust-lang/crates.io-index` Downloading clippy_lints v0.0.123 Compiling regex-syntax v0.4.0 Compiling matches v0.1.4 Compiling rustc-serialize v0.3.23 Compiling unicode-normalization v0.1.4 Compiling semver-parser v0.7.0 Compiling quine-mc_cluskey v0.2.4 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_lints-0.0.123/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.123/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_lints-0.0.123/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.123/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_lints-0.0.123/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.123/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_lints-0.0.123/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.123/debug/deps --cap-lints allow` 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_lints-0.0.123/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.123/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_lints-0.0.123/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.123/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_lints-0.0.123/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.123/debug/deps --extern semver_parser=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libsemver_parser-df3c236d49c7b60f.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="rustc-serialize"' --cfg 'feature="default"' -C metadata=94ea404b50476639 -C extra-filename=-94ea404b50476639 --out-dir /home/cratesfyi/clippy_lints-0.0.123/debug/deps -L dependency=/home/cratesfyi/clippy_lints-0.0.123/debug/deps --extern rustc_serialize=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/librustc_serialize-54d2bf33b1d4b0b0.rlib --cap-lints allow` Documenting clippy_lints v0.0.123 Running `rustdoc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.123/src/lib.rs -o /home/cratesfyi/clippy_lints-0.0.123/doc -L dependency=/home/cratesfyi/clippy_lints-0.0.123/debug/deps --extern unicode_normalization=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libunicode_normalization-0297b14f098a4d93.rlib --extern regex_syntax=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libregex_syntax-21fcdc3a2a66b202.rlib --extern toml=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libtoml-94ea404b50476639.rlib --extern matches=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libmatches-8f1598a59712d6cc.rlib --extern quine_mc_cluskey=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libquine_mc_cluskey-9702e7983e184bea.rlib --extern semver=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libsemver-a755b7ebf243aa54.rlib` error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.123/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.123/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.123/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.123/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.123/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.123/src/utils/mod.rs:693:35 | 693 | let span_name_span = 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.123/src/utils/mod.rs:714:31 | 714 | let span_name_span = span.ctxt | ^^^^ did you mean `lo`? error[E0308]: mismatched types --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.123/src/utils/hir.rs:100:54 | 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.123/src/utils/hir.rs:100:61 | 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.123/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.123/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.123/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.123/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.123/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.123/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.123/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.123/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.123/src/formatting.rs:106:17 | 106 | 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.123/src/formatting.rs:114:25 | 114 | 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.123/src/formatting.rs:141:17 | 141 | 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.123/src/formatting.rs:172:25 | 172 | 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.123/src/formatting.rs:178:29 | 178 | 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.123/src/formatting.rs:203:13 | 203 | 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.123/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.123/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.123/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.123/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.123/src/loops.rs:668:31 | 668 | 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.123/src/loops.rs:668:56 | 668 | 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.123/src/loops.rs:672:38 | 672 | } 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.123/src/loops.rs:693:38 | 693 | } 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.123/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.123/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.123/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.123/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.123/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.123/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.123/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.123/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.123/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.123/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.123/src/misc.rs:502:15 | 502 | expr.span.ctxt.outer().expn_info().map_or(false, |info| matches!(info.callee.format, ExpnFormat::MacroAttribute(_))) | ^^^^ 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.123/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.123/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.123/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.123/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.123/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.123/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.123/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.123/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.123/src/vec.rs:73:40 | 73 | ctxt: args[0].span.ctxt, | ^^^^ did you mean `lo`? error: Compilation failed, aborting rustdoc thread 'main' panicked at 'ChainedError { error: Could not document `clippy_lints`., cause: process didn't exit successfully: `rustdoc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.123/src/lib.rs -o /home/cratesfyi/clippy_lints-0.0.123/doc -L dependency=/home/cratesfyi/clippy_lints-0.0.123/debug/deps --extern unicode_normalization=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libunicode_normalization-0297b14f098a4d93.rlib --extern regex_syntax=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libregex_syntax-21fcdc3a2a66b202.rlib --extern toml=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libtoml-94ea404b50476639.rlib --extern matches=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libmatches-8f1598a59712d6cc.rlib --extern quine_mc_cluskey=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libquine_mc_cluskey-9702e7983e184bea.rlib --extern semver=/home/cratesfyi/clippy_lints-0.0.123/debug/deps/libsemver-a755b7ebf243aa54.rlib` (exit code: 101) }', src/bin/cratesfyi.rs:136 note: Run with `RUST_BACKTRACE=1` for a backtrace.