[INFO] crate alloc-singleton 0.1.0 is already in cache [INFO] extracting crate alloc-singleton 0.1.0 into work/ex/clippy-test-run/sources/stable/reg/alloc-singleton/0.1.0 [INFO] extracting crate alloc-singleton 0.1.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/alloc-singleton/0.1.0 [INFO] validating manifest of alloc-singleton-0.1.0 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 alloc-singleton-0.1.0 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 alloc-singleton-0.1.0 [INFO] finished frobbing alloc-singleton-0.1.0 [INFO] frobbed toml for alloc-singleton-0.1.0 written to work/ex/clippy-test-run/sources/stable/reg/alloc-singleton/0.1.0/Cargo.toml [INFO] started frobbing alloc-singleton-0.1.0 [INFO] finished frobbing alloc-singleton-0.1.0 [INFO] frobbed toml for alloc-singleton-0.1.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/alloc-singleton/0.1.0/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 alloc-singleton-0.1.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-3/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/alloc-singleton/0.1.0:/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] 84ef74947b958608df6b981d58333971720b97537b1ae492531901e416d01a6d [INFO] running `"docker" "start" "-a" "84ef74947b958608df6b981d58333971720b97537b1ae492531901e416d01a6d"` [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Checking stable_deref_trait v1.1.1 [INFO] [stderr] Checking as-slice v0.1.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand v0.5.6 [INFO] [stderr] Compiling owned-singleton-macros v0.1.0 [INFO] [stderr] Checking owned-singleton v0.1.0 [INFO] [stderr] Checking alloc-singleton v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/stable/pool.rs:241:5 [INFO] [stderr] | [INFO] [stderr] 241 | / fn sanity() { [INFO] [stderr] 242 | | #[Singleton] [INFO] [stderr] 243 | | static mut M: [i8; 4] = [0; 4]; [INFO] [stderr] 244 | | [INFO] [stderr] ... | [INFO] [stderr] 286 | | assert_eq!(unsafe { (*M::get())[3] }, 4); [INFO] [stderr] 287 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/lib.rs:11:9 [INFO] [stderr] | [INFO] [stderr] 11 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(clippy::cyclomatic_complexity)] implied by #[deny(warnings)] [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: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `alloc-singleton`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "84ef74947b958608df6b981d58333971720b97537b1ae492531901e416d01a6d"` [INFO] running `"docker" "rm" "-f" "84ef74947b958608df6b981d58333971720b97537b1ae492531901e416d01a6d"` [INFO] [stdout] 84ef74947b958608df6b981d58333971720b97537b1ae492531901e416d01a6d