[INFO] cloning repository https://github.com/songpengfei159/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/songpengfei159/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsongpengfei159%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsongpengfei159%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 97d0588b81330fba87830877b8e1f96622954f71 [INFO] checking songpengfei159/leetcode against try#723ab942d877517caf445dafde0416803ef56501 for pr-143857 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsongpengfei159%2Fleetcode" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/songpengfei159/leetcode [INFO] finished tweaking git repo https://github.com/songpengfei159/leetcode [INFO] tweaked toml for git repo https://github.com/songpengfei159/leetcode written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/songpengfei159/leetcode on toolchain 723ab942d877517caf445dafde0416803ef56501 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/songpengfei159/leetcode 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" "+723ab942d877517caf445dafde0416803ef56501" "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-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e1bdaba64c0b7e3f5dbf03754c67221b49f052650d2644063ac1eefef8bcc691 [INFO] running `Command { std: "docker" "start" "-a" "e1bdaba64c0b7e3f5dbf03754c67221b49f052650d2644063ac1eefef8bcc691", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e1bdaba64c0b7e3f5dbf03754c67221b49f052650d2644063ac1eefef8bcc691", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1bdaba64c0b7e3f5dbf03754c67221b49f052650d2644063ac1eefef8bcc691", kill_on_drop: false }` [INFO] [stdout] e1bdaba64c0b7e3f5dbf03754c67221b49f052650d2644063ac1eefef8bcc691 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+723ab942d877517caf445dafde0416803ef56501" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72880eac46ad8fbdcdfb0656f38cb968dd6e7b2f6252d3f57f759353da9cbcc0 [INFO] running `Command { std: "docker" "start" "-a" "72880eac46ad8fbdcdfb0656f38cb968dd6e7b2f6252d3f57f759353da9cbcc0", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `array::to_num_sum::Solution` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use array::to_num_sum::Solution; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array::to_num_sum::Solution` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use array::to_num_sum::Solution; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/array/two_array_mid.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 18 | / loop { [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 21 | return 1; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/array/two_array_mid.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 18 | / loop { [INFO] [stdout] 19 | | [INFO] [stdout] 20 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] 21 | return 1; [INFO] [stdout] | ^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a1_len` [INFO] [stdout] --> src/array/two_array_mid.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let a1_len = self.arr1.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_a1_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a1_len` [INFO] [stdout] --> src/array/two_array_mid.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | let a1_len = self.arr1.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_a1_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2_len` [INFO] [stdout] --> src/array/two_array_mid.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let a2_len = self.arr2.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_a2_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2_len` [INFO] [stdout] --> src/array/two_array_mid.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | let a2_len = self.arr2.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_a2_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a1_left` [INFO] [stdout] --> src/array/two_array_mid.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let a1_left :usize =0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a1_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2_left` [INFO] [stdout] --> src/array/two_array_mid.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let a2_left :usize =0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a2_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a1_left` [INFO] [stdout] --> src/array/two_array_mid.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let a1_left :usize =0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a1_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a2_left` [INFO] [stdout] --> src/array/two_array_mid.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let a2_left :usize =0; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a2_left` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let target = 6; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/main.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let target = 6; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/array/to_num_sum.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create` and `find_target` are never used [INFO] [stdout] --> src/array/to_num_sum.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 7 | pub fn create(arr: Vec,target: i32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn find_target(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/array/to_num_sum.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `create` and `find_target` are never used [INFO] [stdout] --> src/array/to_num_sum.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Solution { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 7 | pub fn create(arr: Vec,target: i32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn find_target(&self) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] running `Command { std: "docker" "inspect" "72880eac46ad8fbdcdfb0656f38cb968dd6e7b2f6252d3f57f759353da9cbcc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72880eac46ad8fbdcdfb0656f38cb968dd6e7b2f6252d3f57f759353da9cbcc0", kill_on_drop: false }` [INFO] [stdout] 72880eac46ad8fbdcdfb0656f38cb968dd6e7b2f6252d3f57f759353da9cbcc0