[INFO] cloning repository https://github.com/el0i404/array_manipulator
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/el0i404/array_manipulator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fel0i404%2Farray_manipulator", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fel0i404%2Farray_manipulator'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 0a46207baed64e2cfea3335f942908c5dff71fe6
[INFO] checking el0i404/array_manipulator against try#3857be5045fe74bd0f296f6f4c23db10f8857f73 for pr-156807
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fel0i404%2Farray_manipulator" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/el0i404/array_manipulator
[INFO] finished tweaking git repo https://github.com/el0i404/array_manipulator
[INFO] tweaked toml for git repo https://github.com/el0i404/array_manipulator written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/el0i404/array_manipulator on toolchain 3857be5045fe74bd0f296f6f4c23db10f8857f73
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/el0i404/array_manipulator already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 78b9abf61972efe179372639a4457e4c1e228282a63389a8559db5805417fe52
[INFO] running `Command { std: "docker" "start" "-a" "78b9abf61972efe179372639a4457e4c1e228282a63389a8559db5805417fe52", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "78b9abf61972efe179372639a4457e4c1e228282a63389a8559db5805417fe52", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "78b9abf61972efe179372639a4457e4c1e228282a63389a8559db5805417fe52", kill_on_drop: false }`
[INFO] [stdout] 78b9abf61972efe179372639a4457e4c1e228282a63389a8559db5805417fe52
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3857be5045fe74bd0f296f6f4c23db10f8857f73" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4e4d475cab1fddc9a22eeace7e81acf06c6307769bb52baa84d690b1ab8f5a05
[INFO] running `Command { std: "docker" "start" "-a" "4e4d475cab1fddc9a22eeace7e81acf06c6307769bb52baa84d690b1ab8f5a05", kill_on_drop: false }`
[INFO] [stderr]     Checking array_manipulator v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0277]: cannot add-assign `&f64` to `{integer}`
[INFO] [stdout]    --> src/main.rs:115:42
[INFO] [stdout]     |
[INFO] [stdout] 115 |     data.iter().clone().for_each(|x| acc += x as &f64);
[INFO] [stdout]     |                                          ^^ no implementation for `{integer} += &f64`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `AddAssign<&f64>` is not implemented for `{integer}`
[INFO] [stdout]     = help: the following other types implement trait `AddAssign<Rhs>`:
[INFO] [stdout]               `f128` implements `AddAssign<&f128>`
[INFO] [stdout]               `f128` implements `AddAssign`
[INFO] [stdout]               `f16` implements `AddAssign<&f16>`
[INFO] [stdout]               `f16` implements `AddAssign`
[INFO] [stdout]               `f32` implements `AddAssign<&f32>`
[INFO] [stdout]               `f32` implements `AddAssign`
[INFO] [stdout]               `f64` implements `AddAssign<&f64>`
[INFO] [stdout]               `f64` implements `AddAssign`
[INFO] [stdout]             and 24 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: cannot add-assign `&f64` to `{integer}`
[INFO] [stdout]    --> src/main.rs:115:42
[INFO] [stdout]     |
[INFO] [stdout] 115 |     data.iter().clone().for_each(|x| acc += x as &f64);
[INFO] [stdout]     |                                          ^^ no implementation for `{integer} += &f64`
[INFO] [stdout]     |
[INFO] [stdout]     = help: the trait `AddAssign<&f64>` is not implemented for `{integer}`
[INFO] [stdout]     = help: the following other types implement trait `AddAssign<Rhs>`:
[INFO] [stdout]               `f128` implements `AddAssign<&f128>`
[INFO] [stdout]               `f128` implements `AddAssign`
[INFO] [stdout]               `f16` implements `AddAssign<&f16>`
[INFO] [stdout]               `f16` implements `AddAssign`
[INFO] [stdout]               `f32` implements `AddAssign<&f32>`
[INFO] [stdout]               `f32` implements `AddAssign`
[INFO] [stdout]               `f64` implements `AddAssign<&f64>`
[INFO] [stdout]               `f64` implements `AddAssign`
[INFO] [stdout]             and 24 others
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `&i32` as `&f64`
[INFO] [stdout]    --> src/main.rs:115:45
[INFO] [stdout]     |
[INFO] [stdout] 115 |     data.iter().clone().for_each(|x| acc += x as &f64);
[INFO] [stdout]     |                                             ^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0605]: non-primitive cast: `&i32` as `&f64`
[INFO] [stdout]    --> src/main.rs:115:45
[INFO] [stdout]     |
[INFO] [stdout] 115 |     data.iter().clone().for_each(|x| acc += x as &f64);
[INFO] [stdout]     |                                             ^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]   --> src/main.rs:65:22
[INFO] [stdout]    |
[INFO] [stdout] 65 | fn calculate_average(data: &[i32]) -> f64 {
[INFO] [stdout]    |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]   --> src/main.rs:65:22
[INFO] [stdout]    |
[INFO] [stdout] 65 | fn calculate_average(data: &[i32]) -> f64 {
[INFO] [stdout]    |                      ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/main.rs:104:24
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn find_second_largest(data: &[i32]) -> Option<i32> {
[INFO] [stdout]     |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/main.rs:104:24
[INFO] [stdout]     |
[INFO] [stdout] 104 | fn find_second_largest(data: &[i32]) -> Option<i32> {
[INFO] [stdout]     |                        ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/main.rs:122:18
[INFO] [stdout]     |
[INFO] [stdout] 122 | fn find_subslice(data: &[i32], pattern: &[i32]) -> Option<usize> {
[INFO] [stdout]     |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/main.rs:122:18
[INFO] [stdout]     |
[INFO] [stdout] 122 | fn find_subslice(data: &[i32], pattern: &[i32]) -> Option<usize> {
[INFO] [stdout]     |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pattern`
[INFO] [stdout]    --> src/main.rs:122:32
[INFO] [stdout]     |
[INFO] [stdout] 122 | fn find_subslice(data: &[i32], pattern: &[i32]) -> Option<usize> {
[INFO] [stdout]     |                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pattern`
[INFO] [stdout]    --> src/main.rs:122:32
[INFO] [stdout]     |
[INFO] [stdout] 122 | fn find_subslice(data: &[i32], pattern: &[i32]) -> Option<usize> {
[INFO] [stdout]     |                                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_pattern`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0605.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0605.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `array_manipulator` (bin "array_manipulator") due to 2 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `array_manipulator` (bin "array_manipulator" test) due to 2 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "4e4d475cab1fddc9a22eeace7e81acf06c6307769bb52baa84d690b1ab8f5a05", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4e4d475cab1fddc9a22eeace7e81acf06c6307769bb52baa84d690b1ab8f5a05", kill_on_drop: false }`
[INFO] [stdout] 4e4d475cab1fddc9a22eeace7e81acf06c6307769bb52baa84d690b1ab8f5a05
