[INFO] crate bytecodec 0.4.11 is already in cache [INFO] extracting crate bytecodec 0.4.11 into work/ex/clippy-test-run/sources/stable/reg/bytecodec/0.4.11 [INFO] extracting crate bytecodec 0.4.11 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/bytecodec/0.4.11 [INFO] validating manifest of bytecodec-0.4.11 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of bytecodec-0.4.11 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing bytecodec-0.4.11 [INFO] finished frobbing bytecodec-0.4.11 [INFO] frobbed toml for bytecodec-0.4.11 written to work/ex/clippy-test-run/sources/stable/reg/bytecodec/0.4.11/Cargo.toml [INFO] started frobbing bytecodec-0.4.11 [INFO] finished frobbing bytecodec-0.4.11 [INFO] frobbed toml for bytecodec-0.4.11 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/bytecodec/0.4.11/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting bytecodec-0.4.11 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-7/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/bytecodec/0.4.11:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] e22d752812d7fe32f18798ddfcb3d92133c0c7da22eac3910c7ef1a1fdeb81e5 [INFO] running `"docker" "start" "-a" "e22d752812d7fe32f18798ddfcb3d92133c0c7da22eac3910c7ef1a1fdeb81e5"` [INFO] [stderr] Checking bytecodec v0.4.11 (/opt/crater/workdir) [INFO] [stderr] warning: the function has a cyclomatic complexity of 131 [INFO] [stderr] --> src/fixnum.rs:1585:5 [INFO] [stderr] | [INFO] [stderr] 1585 | / fn fixnum_works() { [INFO] [stderr] 1586 | | assert_encode_decode!(U8Encoder, U8Decoder, 7, [7]); [INFO] [stderr] 1587 | | assert_encode_decode!(I8Encoder, I8Decoder, -1, [255]); [INFO] [stderr] 1588 | | assert_encode_decode!(U16beEncoder, U16beDecoder, 0x0102, [0x01, 0x02]); [INFO] [stderr] ... | [INFO] [stderr] 1681 | | ); [INFO] [stderr] 1682 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/fixnum.rs:1668:9 [INFO] [stderr] | [INFO] [stderr] 1668 | assert_encode_decode!(F32beEncoder, F32beDecoder, -123.4, [194, 246, 204, 205]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/fixnum.rs:1668:9 [INFO] [stderr] | [INFO] [stderr] 1668 | assert_encode_decode!(F32beEncoder, F32beDecoder, -123.4, [194, 246, 204, 205]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in this macro invocation [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/fixnum.rs:1669:9 [INFO] [stderr] | [INFO] [stderr] 1669 | assert_encode_decode!(F32leEncoder, F32leDecoder, -123.4, [205, 204, 246, 194]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in this macro invocation [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/fixnum.rs:1669:9 [INFO] [stderr] | [INFO] [stderr] 1669 | assert_encode_decode!(F32leEncoder, F32leDecoder, -123.4, [205, 204, 246, 194]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ in this macro invocation [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/fixnum.rs:1670:9 [INFO] [stderr] | [INFO] [stderr] 1670 | / assert_encode_decode!( [INFO] [stderr] 1671 | | F64beEncoder, [INFO] [stderr] 1672 | | F64beDecoder, [INFO] [stderr] 1673 | | -123.456, [INFO] [stderr] 1674 | | [192, 94, 221, 47, 26, 159, 190, 119] [INFO] [stderr] 1675 | | ); [INFO] [stderr] | |__________^ in this macro invocation [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/fixnum.rs:1670:9 [INFO] [stderr] | [INFO] [stderr] 1670 | / assert_encode_decode!( [INFO] [stderr] 1671 | | F64beEncoder, [INFO] [stderr] 1672 | | F64beDecoder, [INFO] [stderr] 1673 | | -123.456, [INFO] [stderr] 1674 | | [192, 94, 221, 47, 26, 159, 190, 119] [INFO] [stderr] 1675 | | ); [INFO] [stderr] | |__________^ in this macro invocation [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/fixnum.rs:1676:9 [INFO] [stderr] | [INFO] [stderr] 1676 | / assert_encode_decode!( [INFO] [stderr] 1677 | | F64leEncoder, [INFO] [stderr] 1678 | | F64leDecoder, [INFO] [stderr] 1679 | | -123.456, [INFO] [stderr] 1680 | | [119, 190, 159, 26, 47, 221, 94, 192] [INFO] [stderr] 1681 | | ); [INFO] [stderr] | |__________^ in this macro invocation [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/fixnum.rs:1676:9 [INFO] [stderr] | [INFO] [stderr] 1676 | / assert_encode_decode!( [INFO] [stderr] 1677 | | F64leEncoder, [INFO] [stderr] 1678 | | F64leDecoder, [INFO] [stderr] 1679 | | -123.456, [INFO] [stderr] 1680 | | [119, 190, 159, 26, 47, 221, 94, 192] [INFO] [stderr] 1681 | | ); [INFO] [stderr] | |__________^ in this macro invocation [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: The use of negated comparison operators on partially ordered types produces code that is hard to read and refactor. Please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable. [INFO] [stderr] --> src/byte_count.rs:126:17 [INFO] [stderr] | [INFO] [stderr] 126 | assert!(!(ByteCount::Infinite < ByteCount::Unknown)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::neg_cmp_op_on_partial_ord)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord [INFO] [stderr] [INFO] [stderr] warning: The use of negated comparison operators on partially ordered types produces code that is hard to read and refactor. Please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable. [INFO] [stderr] --> src/byte_count.rs:127:17 [INFO] [stderr] | [INFO] [stderr] 127 | assert!(!(ByteCount::Unknown < ByteCount::Infinite)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord [INFO] [stderr] [INFO] [stderr] warning: The use of negated comparison operators on partially ordered types produces code that is hard to read and refactor. Please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable. [INFO] [stderr] --> src/byte_count.rs:128:17 [INFO] [stderr] | [INFO] [stderr] 128 | assert!(!(ByteCount::Unknown < ByteCount::Unknown)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord [INFO] [stderr] [INFO] [stderr] error: equal expressions as operands to `<` [INFO] [stderr] --> src/byte_count.rs:128:18 [INFO] [stderr] | [INFO] [stderr] 128 | assert!(!(ByteCount::Unknown < ByteCount::Unknown)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::eq_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op [INFO] [stderr] [INFO] [stderr] warning: The use of negated comparison operators on partially ordered types produces code that is hard to read and refactor. Please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable. [INFO] [stderr] --> src/byte_count.rs:129:17 [INFO] [stderr] | [INFO] [stderr] 129 | assert!(!(ByteCount::Unknown < ByteCount::Unknown)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#neg_cmp_op_on_partial_ord [INFO] [stderr] [INFO] [stderr] error: equal expressions as operands to `<` [INFO] [stderr] --> src/byte_count.rs:129:18 [INFO] [stderr] | [INFO] [stderr] 129 | assert!(!(ByteCount::Unknown < ByteCount::Unknown)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#eq_op [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `bytecodec`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "e22d752812d7fe32f18798ddfcb3d92133c0c7da22eac3910c7ef1a1fdeb81e5"` [INFO] running `"docker" "rm" "-f" "e22d752812d7fe32f18798ddfcb3d92133c0c7da22eac3910c7ef1a1fdeb81e5"` [INFO] [stdout] e22d752812d7fe32f18798ddfcb3d92133c0c7da22eac3910c7ef1a1fdeb81e5