clippy 0.0.205

A bunch of helpful lints to avoid common pitfalls in Rust

Build #101038 2018-05-26 08:28:06

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.26.0-dev (0eb87c9bf 2018-03-16)

# docs.rs version cratesfyi 0.5.0 (579f83b 2018-03-05)

# build log Updating registry `https://github.com/rust-lang/crates.io-index` Downloading clippy v0.0.205 Fresh getopts v0.2.17 Fresh cfg-if v0.1.3 Fresh matches v0.1.6 Fresh percent-encoding v1.0.1 Fresh unicode-xid v0.1.0 Fresh void v1.0.2 Fresh unicode-normalization v0.1.7 Fresh lazy_static v1.0.0 Fresh itoa v0.4.1 Fresh cc v1.0.15 Fresh proc-macro2 v0.4.3 Fresh ucd-util v0.1.1 Fresh either v1.5.0 Fresh quine-mc_cluskey v0.2.4 Fresh ansi_term v0.11.0 Compiling unreachable v1.0.0 Fresh regex-syntax v0.6.0 Fresh itertools v0.7.8 Fresh dtoa v0.4.2 Running `rustc --crate-name unreachable .cargo/registry/src/github.com-1ecc6299db9ec823/unreachable-1.0.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=b9c7c97cb1bf6717 -C extra-filename=-b9c7c97cb1bf6717 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern void=/home/cratesfyi/cratesfyi/debug/deps/libvoid-6c52c4ddaea6e3db.rlib --extern-version void=void,1.0.2 --cap-lints allow` Fresh utf8-ranges v1.0.0 Fresh unicode-bidi v0.3.4 Fresh libc v0.2.41 Fresh if_chain v0.1.2 Fresh bitflags v0.9.1 Compiling serde v1.0.60 Fresh quote v0.6.2 Fresh rustc-demangle v0.1.8 Fresh idna v0.1.4 Fresh memchr v2.0.1 Fresh syn v0.14.0 Fresh semver-parser v0.7.0 Fresh url v1.7.0 Fresh aho-corasick v0.6.4 Fresh serde_derive v1.0.60 Fresh backtrace-sys v0.1.21 Fresh backtrace v0.3.8 Fresh error-chain v0.11.0 Running `rustc --crate-name serde .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=e992896ded2bd266 -C extra-filename=-e992896ded2bd266 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow --cfg integer128` Fresh pulldown-cmark v0.1.2 Compiling thread_local v0.3.5 Running `rustc --crate-name thread_local .cargo/registry/src/github.com-1ecc6299db9ec823/thread_local-0.3.5/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=db3ee6d3c7fe5526 -C extra-filename=-db3ee6d3c7fe5526 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern unreachable=/home/cratesfyi/cratesfyi/debug/deps/libunreachable-b9c7c97cb1bf6717.rlib --extern-version unreachable=unreachable,1.0.0 --extern lazy_static=/home/cratesfyi/cratesfyi/debug/deps/liblazy_static-d78457efc2ee8353.rlib --extern-version lazy_static=lazy_static,1.0.0 --cap-lints allow` Compiling regex v1.0.0 Running `rustc --crate-name regex .cargo/registry/src/github.com-1ecc6299db9ec823/regex-1.0.0/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="use_std"' -C metadata=492e08afd51eca9f -C extra-filename=-492e08afd51eca9f --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --extern thread_local=/home/cratesfyi/cratesfyi/debug/deps/libthread_local-db3ee6d3c7fe5526.rlib --extern-version thread_local=thread_local,0.3.5 --extern memchr=/home/cratesfyi/cratesfyi/debug/deps/libmemchr-f754cb82c0139373.rlib --extern-version memchr=memchr,2.0.1 --extern regex_syntax=/home/cratesfyi/cratesfyi/debug/deps/libregex_syntax-38e34e314af44eaa.rlib --extern-version regex_syntax=regex-syntax,0.6.0 --extern aho_corasick=/home/cratesfyi/cratesfyi/debug/deps/libaho_corasick-e524697c89f1b116.rlib --extern-version aho_corasick=aho-corasick,0.6.4 --extern utf8_ranges=/home/cratesfyi/cratesfyi/debug/deps/libutf8_ranges-b81dc320c0a952bb.rlib --extern-version utf8_ranges=utf8-ranges,1.0.0 --cap-lints allow` error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:183:28 | 183 | impl FromPrimitive for i128 { | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:186:23 | 186 | Some(n as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:190:23 | 190 | Some(n as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:194:23 | 194 | Some(n as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:198:23 | 198 | Some(n as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:202:23 | 202 | Some(n as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:206:23 | 206 | Some(n as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:210:23 | 210 | Some(n as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:214:23 | 214 | Some(n as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:218:28 | 218 | impl FromPrimitive for u128 { | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:222:27 | 222 | Some(n as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:230:27 | 230 | Some(n as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:238:27 | 238 | Some(n as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:246:27 | 246 | Some(n as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:253:23 | 253 | Some(n as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:257:23 | 257 | Some(n as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:261:23 | 261 | Some(n as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/from_primitive.rs:265:23 | 265 | Some(n as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:170:36 | 170 | impl<'de> Deserialize<'de> for i128 { | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:179:30 | 179 | type Value = i128; | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:188:43 | 188 | fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E> | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:196:43 | 196 | fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E> | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:200:29 | 200 | if v <= i128::max_value() as u128 { | ^^^^^^^^^^^^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:200:50 | 200 | if v <= i128::max_value() as u128 { | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:201:33 | 201 | Ok(v as i128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:212:36 | 212 | impl<'de> Deserialize<'de> for u128 { | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:221:30 | 221 | type Value = u128; | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:230:43 | 230 | fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E> | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:235:33 | 235 | Ok(v as u128) | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/impls.rs:242:43 | 242 | fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E> | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/mod.rs:1286:35 | 1286 | fn visit_i128<E>(self, v: i128) -> Result<Self::Value, E> | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/de/mod.rs:1346:35 | 1346 | fn visit_u128<E>(self, v: u128) -> Result<Self::Value, E> | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/ser/impls.rs:20:28 | 20 | impl Serialize for $ty { | ^^^ ... 48 | primitive_impl!(i128, serialize_i128); | -------------------------------------- in this macro invocation | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/ser/impls.rs:20:28 | 20 | impl Serialize for $ty { | ^^^ ... 49 | primitive_impl!(u128, serialize_u128); | -------------------------------------- in this macro invocation | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/ser/mod.rs:520:36 | 520 | fn serialize_i128(self, v: i128) -> Result<Self::Ok, Self::Error> { | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error[E0658]: 128-bit type is unstable (see issue #35118) --> .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/ser/mod.rs:655:36 | 655 | fn serialize_u128(self, v: u128) -> Result<Self::Ok, Self::Error> { | ^^^^ | = help: add #![feature(i128_type)] to the crate attributes to enable error: aborting due to 36 previous errors For more information about this error, try `rustc --explain E0658`. thread 'main' panicked at 'Error( CargoError( ChainedError { error: Could not compile `serde`., cause: process didn't exit successfully: `rustc --crate-name serde .cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.60/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg feature="default" --cfg feature="std" -C metadata=e992896ded2bd266 -C extra-filename=-e992896ded2bd266 --out-dir /home/cratesfyi/cratesfyi/debug/deps -L dependency=/home/cratesfyi/cratesfyi/debug/deps --cap-lints allow --cfg integer128` (exit code: 101) } ), State { next_error: None, backtrace: None } )', src/bin/cratesfyi.rs:142:13 note: Run with `RUST_BACKTRACE=1` for a backtrace.