clippy_lints 0.0.160

A bunch of helpful lints to avoid common pitfalls in Rust

Build #70367 2017-09-13 13:37:30

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.21.0-dev (d835dc82b 2017-08-29)

# docs.rs version cratesfyi 0.4.1 (003e49d 2017-06-08)

# build log Updating registry `https://github.com/rust-lang/crates.io-index` Downloading clippy_lints v0.0.160 Fresh semver-parser v0.7.0 Fresh quote v0.3.15 Fresh matches v0.1.6 Fresh unicode-normalization v0.1.5 Fresh either v1.1.0 Fresh lazy_static v0.2.8 Fresh regex-syntax v0.4.1 Fresh bitflags v0.9.1 Fresh serde v1.0.14 Fresh quine-mc_cluskey v0.2.4 Fresh unicode-xid v0.0.4 Fresh itertools v0.6.2 Fresh semver v0.6.0 Fresh getopts v0.2.15 Fresh toml v0.4.5 Fresh synom v0.11.3 Fresh pulldown-cmark v0.0.15 Fresh syn v0.11.11 Fresh serde_derive_internals v0.16.0 Fresh serde_derive v1.0.14 Documenting clippy_lints v0.0.160 Running `rustdoc --crate-name clippy_lints .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.160/src/lib.rs -o /home/cratesfyi/cratesfyi/doc -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-741d235fd5b04a62.so --extern-version serde_derive=serde_derive,1.0.14 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-d225ddfcb503bcb8.rlib --extern-version itertools=itertools,0.6.2 --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=/home/cratesfyi/cratesfyi/debug/deps/libserde-52db0638aa6d27c3.rlib --extern-version serde=serde,1.0.14 --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 unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-18005fa1be5dd889.rlib --extern-version lazy_static=lazy_static,0.2.8 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15` error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.160/src/utils/mod.rs:316:29 | 316 | pub fn const_to_u64(c: &ty::Const) -> u64 { | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.160/src/array_indexing.rs:117:32 | 117 | start: &Option<Option<&ty::Const>>, | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.160/src/array_indexing.rs:118:30 | 118 | end: &Option<Option<&ty::Const>>, | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0412]: cannot find type `Scope` in module `region` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.160/src/loops.rs:1328:43 | 1328 | indexed: HashMap<Name, Option<region::Scope>>, | ^^^^^ not found in `region` error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.160/src/matches.rs:414:114 | 414 | fn all_ranges<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, arms: &'tcx [Arm], id: NodeId) -> Vec<SpannedRange<&'tcx ty::Const<'tcx>>> { | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? error[E0412]: cannot find type `Const` in module `ty` --> .cargo/registry/src/github.com-1ecc6299db9ec823/clippy_lints-0.0.160/src/matches.rs:467:44 | 467 | fn type_ranges(ranges: &[SpannedRange<&ty::Const>]) -> TypedRanges { | ^^^^^ not found in `ty` | = help: there is an enum variant `rustc::hir::AssociatedItemKind::Const`, try using `rustc::hir::AssociatedItemKind`? = help: there is an enum variant `rustc::hir::Constness::Const`, try using `rustc::hir::Constness`? = help: there is an enum variant `rustc::hir::ImplItemKind::Const`, try using `rustc::hir::ImplItemKind`? = help: there is an enum variant `rustc::hir::TraitItemKind::Const`, try using `rustc::hir::TraitItemKind`? = help: there is an enum variant `rustc::hir::def::CtorKind::Const`, try using `rustc::hir::def::CtorKind`? = help: there is an enum variant `rustc::hir::def::Def::Const`, try using `rustc::hir::def::Def`? = help: there is an enum variant `rustc::mir::transform::MirSource::Const`, try using `rustc::mir::transform::MirSource`? = help: there is an enum variant `rustc::ty::AssociatedKind::Const`, try using `rustc::ty::AssociatedKind`? = help: there is an enum variant `syntax::ast::Constness::Const`, try using `syntax::ast::Constness`? = help: there is an enum variant `syntax::ast::ImplItemKind::Const`, try using `syntax::ast::ImplItemKind`? = help: there is an enum variant `syntax::ast::ItemKind::Const`, try using `syntax::ast::ItemKind`? = help: there is an enum variant `syntax::ast::TraitItemKind::Const`, try using `syntax::ast::TraitItemKind`? 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.160/src/lib.rs -o /home/cratesfyi/cratesfyi/doc -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern serde_derive=/home/cratesfyi/cratesfyi/debug/deps/libserde_derive-741d235fd5b04a62.so --extern-version serde_derive=serde_derive,1.0.14 --extern semver=/home/cratesfyi/cratesfyi/debug/deps/libsemver-70b59fcc83de19e2.rlib --extern-version semver=semver,0.6.0 --extern itertools=/home/cratesfyi/cratesfyi/debug/deps/libitertools-d225ddfcb503bcb8.rlib --extern-version itertools=itertools,0.6.2 --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=/home/cratesfyi/cratesfyi/debug/deps/libserde-52db0638aa6d27c3.rlib --extern-version serde=serde,1.0.14 --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 unicode_normalization=/home/cratesfyi/cratesfyi/debug/deps/libunicode_normalization-5554c8b28de87bfc.rlib --extern-version unicode_normalization=unicode-normalization,0.1.5 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-0240ebb185fe3635.rlib --extern-version regex_syntax=regex-syntax,0.4.1 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-18005fa1be5dd889.rlib --extern-version lazy_static=lazy_static,0.2.8 --extern pulldown_cmark=/home/cratesfyi/cratesfyi/debug/deps/libpulldown_cmark-51e76190cc33fac5.rlib --extern-version pulldown_cmark=pulldown-cmark,0.0.15` (exit code: 101) }', src/bin/cratesfyi.rs:142 note: Run with `RUST_BACKTRACE=1` for a backtrace.