[INFO] updating cached repository Necromunger/rust_api [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/Necromunger/rust_api [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/Necromunger/rust_api" "work/ex/clippy-test-run/sources/stable/gh/Necromunger/rust_api"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/Necromunger/rust_api'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/Necromunger/rust_api" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Necromunger/rust_api"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Necromunger/rust_api'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] f07acce72a6a64797c08de4aff4687ceae629e0a [INFO] sha for GitHub repo Necromunger/rust_api: f07acce72a6a64797c08de4aff4687ceae629e0a [INFO] validating manifest of Necromunger/rust_api 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 Necromunger/rust_api 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 Necromunger/rust_api [INFO] finished frobbing Necromunger/rust_api [INFO] frobbed toml for Necromunger/rust_api written to work/ex/clippy-test-run/sources/stable/gh/Necromunger/rust_api/Cargo.toml [INFO] started frobbing Necromunger/rust_api [INFO] finished frobbing Necromunger/rust_api [INFO] frobbed toml for Necromunger/rust_api written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Necromunger/rust_api/Cargo.toml [INFO] crate Necromunger/rust_api has a lockfile. skipping [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 Necromunger/rust_api against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-2/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/Necromunger/rust_api:/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] 45371b7d6ad65f47c6a2e9a2d85dcd4aac024e4cc68b96fe3325d6c119e3e682 [INFO] running `"docker" "start" "-a" "45371b7d6ad65f47c6a2e9a2d85dcd4aac024e4cc68b96fe3325d6c119e3e682"` [INFO] [stderr] Checking socket2 v0.3.8 [INFO] [stderr] Checking postgres-protocol v0.3.2 [INFO] [stderr] Checking pretty_env_logger v0.2.4 [INFO] [stderr] Checking postgres-shared v0.4.2 [INFO] [stderr] Checking postgres v0.15.2 [INFO] [stderr] Checking rust_api v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error: unneeded return statement [INFO] [stderr] --> src/main.rs:98:17 [INFO] [stderr] | [INFO] [stderr] 98 | / return Response::builder() [INFO] [stderr] 99 | | .status(StatusCode::OK) [INFO] [stderr] 100 | | .header("Access-Control-Allow-Origin", "*") [INFO] [stderr] 101 | | .header("hyper", "*") [INFO] [stderr] 102 | | .body(carrier.to_string().into()) [INFO] [stderr] 103 | | .unwrap(); [INFO] [stderr] | |______________________________^ [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/main.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(clippy::needless_return)] implied by #[deny(warnings)] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] help: remove `return` as shown [INFO] [stderr] | [INFO] [stderr] 98 | Response::builder() [INFO] [stderr] 99 | .status(StatusCode::OK) [INFO] [stderr] 100 | .header("Access-Control-Allow-Origin", "*") [INFO] [stderr] 101 | .header("hyper", "*") [INFO] [stderr] 102 | .body(carrier.to_string().into()) [INFO] [stderr] 103 | .unwrap() [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: unneeded return statement [INFO] [stderr] --> src/main.rs:98:17 [INFO] [stderr] | [INFO] [stderr] 98 | / return Response::builder() [INFO] [stderr] 99 | | .status(StatusCode::OK) [INFO] [stderr] 100 | | .header("Access-Control-Allow-Origin", "*") [INFO] [stderr] 101 | | .header("hyper", "*") [INFO] [stderr] 102 | | .body(carrier.to_string().into()) [INFO] [stderr] 103 | | .unwrap(); [INFO] [stderr] | |______________________________^ [INFO] [stderr] | [INFO] [stderr] note: lint level defined here [INFO] [stderr] --> src/main.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | #![deny(warnings)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: #[deny(clippy::needless_return)] implied by #[deny(warnings)] [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] help: remove `return` as shown [INFO] [stderr] | [INFO] [stderr] 98 | Response::builder() [INFO] [stderr] 99 | .status(StatusCode::OK) [INFO] [stderr] 100 | .header("Access-Control-Allow-Origin", "*") [INFO] [stderr] 101 | .header("hyper", "*") [INFO] [stderr] 102 | .body(carrier.to_string().into()) [INFO] [stderr] 103 | .unwrap() [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `rust_api`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `rust_api`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "45371b7d6ad65f47c6a2e9a2d85dcd4aac024e4cc68b96fe3325d6c119e3e682"` [INFO] running `"docker" "rm" "-f" "45371b7d6ad65f47c6a2e9a2d85dcd4aac024e4cc68b96fe3325d6c119e3e682"` [INFO] [stdout] 45371b7d6ad65f47c6a2e9a2d85dcd4aac024e4cc68b96fe3325d6c119e3e682