[INFO] cloning repository https://github.com/Mimikkk/leetcode-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Mimikkk/leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMimikkk%2Fleetcode-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMimikkk%2Fleetcode-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 2941394326e374a5f041780cfd6769cc43e33a34
[INFO] checking Mimikkk/leetcode-rust against try#0611f7de057c584b8771102fde7aed6c70c71d3b for pr-146440
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMimikkk%2Fleetcode-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Mimikkk/leetcode-rust
[INFO] finished tweaking git repo https://github.com/Mimikkk/leetcode-rust
[INFO] tweaked toml for git repo https://github.com/Mimikkk/leetcode-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Mimikkk/leetcode-rust on toolchain 0611f7de057c584b8771102fde7aed6c70c71d3b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Mimikkk/leetcode-rust 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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8ecf7153025cdf74b4dbf045552121c7c46d3c9e644c67184425db73d33dd157
[INFO] running `Command { std: "docker" "start" "-a" "8ecf7153025cdf74b4dbf045552121c7c46d3c9e644c67184425db73d33dd157", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8ecf7153025cdf74b4dbf045552121c7c46d3c9e644c67184425db73d33dd157", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8ecf7153025cdf74b4dbf045552121c7c46d3c9e644c67184425db73d33dd157", kill_on_drop: false }`
[INFO] [stdout] 8ecf7153025cdf74b4dbf045552121c7c46d3c9e644c67184425db73d33dd157
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0d33af5b3e95d36c5cca916b8f0ed8b4e1d6b5a74f5bf834ede567174ad1fa20
[INFO] running `Command { std: "docker" "start" "-a" "0d33af5b3e95d36c5cca916b8f0ed8b4e1d6b5a74f5bf834ede567174ad1fa20", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.86
[INFO] [stderr]    Compiling getrandom v0.2.2
[INFO] [stderr]     Checking rand_core v0.6.2
[INFO] [stderr]     Checking rand_chacha v0.3.0
[INFO] [stderr]     Checking rand v0.8.3
[INFO] [stderr]     Checking leetcode v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/algorithms.rs:638:23
[INFO] [stdout]     |
[INFO] [stdout] 638 | pub fn find_duplicate(mut nums: Vec<i32>) -> i32 {
[INFO] [stdout]     |                       ----^^^^
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/algorithms.rs:719:10
[INFO] [stdout]     |
[INFO] [stdout] 719 |     for (i, size) in chunk_sizes.into_iter().enumerate() {}
[INFO] [stdout]     |          ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]    --> src/algorithms.rs:719:13
[INFO] [stdout]     |
[INFO] [stdout] 719 |     for (i, size) in chunk_sizes.into_iter().enumerate() {}
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/algorithms.rs:791:45
[INFO] [stdout]     |
[INFO] [stdout] 791 |     current_chars.into_iter().fold(0, |acc, mut c| acc + c.is_none() as i32)
[INFO] [stdout]     |                                             ----^
[INFO] [stdout]     |                                             |
[INFO] [stdout]     |                                             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/algorithms.rs:778:46
[INFO] [stdout]     |
[INFO] [stdout] 778 | pub fn num_matching_subseq(sequence: String, mut subsequences: Vec<String>) -> i32 {
[INFO] [stdout]     |                                              ----^^^^^^^^^^^^
[INFO] [stdout]     |                                              |
[INFO] [stdout]     |                                              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/algorithms/part2.rs:35:24
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub fn number_of_steps(mut num: i32) -> i32 {
[INFO] [stdout]    |                        ----^^^
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `val` is never read
[INFO] [stdout]   --> src/ghost/firstbatch.rs:46:10
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let (mut val, mut carry) = (0, false);
[INFO] [stdout]    |          ^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 51 |         val = carry as i32;
[INFO] [stdout]    |         ------------------ `val` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `current` is never read
[INFO] [stdout]    --> src/ghost/firstbatch.rs:122:36
[INFO] [stdout]     |
[INFO] [stdout] 122 |     let (mut result, mut previous, mut current) = (0, 0, 0);
[INFO] [stdout]     |                                    ^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] 123 |     for c in s.chars().rev() {
[INFO] [stdout] 124 |         current = map[&c];
[INFO] [stdout]     |         ----------------- `current` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `mid` is never read
[INFO] [stdout]   --> src/ghost/secondbatch.rs:6:24
[INFO] [stdout]    |
[INFO] [stdout]  6 |     let mut mid: i64 = 0;
[INFO] [stdout]    |                        ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 10 |         mid = (low + high) / 2;
[INFO] [stdout]    |         ---------------------- `mid` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `MyStack` is never constructed
[INFO] [stdout]  --> src/data_structures/stack.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct MyStack<T> {
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]   = note: `#[deny(unused_unconstructable_pub_struct)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcode` (bin "leetcode") due to 1 previous error; 9 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/algorithms.rs:638:23
[INFO] [stdout]     |
[INFO] [stdout] 638 | pub fn find_duplicate(mut nums: Vec<i32>) -> i32 {
[INFO] [stdout]     |                       ----^^^^
[INFO] [stdout]     |                       |
[INFO] [stdout]     |                       help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/algorithms.rs:719:10
[INFO] [stdout]     |
[INFO] [stdout] 719 |     for (i, size) in chunk_sizes.into_iter().enumerate() {}
[INFO] [stdout]     |          ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `size`
[INFO] [stdout]    --> src/algorithms.rs:719:13
[INFO] [stdout]     |
[INFO] [stdout] 719 |     for (i, size) in chunk_sizes.into_iter().enumerate() {}
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_size`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/algorithms.rs:791:45
[INFO] [stdout]     |
[INFO] [stdout] 791 |     current_chars.into_iter().fold(0, |acc, mut c| acc + c.is_none() as i32)
[INFO] [stdout]     |                                             ----^
[INFO] [stdout]     |                                             |
[INFO] [stdout]     |                                             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/algorithms.rs:778:46
[INFO] [stdout]     |
[INFO] [stdout] 778 | pub fn num_matching_subseq(sequence: String, mut subsequences: Vec<String>) -> i32 {
[INFO] [stdout]     |                                              ----^^^^^^^^^^^^
[INFO] [stdout]     |                                              |
[INFO] [stdout]     |                                              help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/algorithms/part2.rs:35:24
[INFO] [stdout]    |
[INFO] [stdout] 35 | pub fn number_of_steps(mut num: i32) -> i32 {
[INFO] [stdout]    |                        ----^^^
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `val` is never read
[INFO] [stdout]   --> src/ghost/firstbatch.rs:46:10
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let (mut val, mut carry) = (0, false);
[INFO] [stdout]    |          ^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 51 |         val = carry as i32;
[INFO] [stdout]    |         ------------------ `val` is overwritten here before the previous value is read
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `current` is never read
[INFO] [stdout]    --> src/ghost/firstbatch.rs:122:36
[INFO] [stdout]     |
[INFO] [stdout] 122 |     let (mut result, mut previous, mut current) = (0, 0, 0);
[INFO] [stdout]     |                                    ^^^^^^^^^^^ this value is reassigned later and never used
[INFO] [stdout] 123 |     for c in s.chars().rev() {
[INFO] [stdout] 124 |         current = map[&c];
[INFO] [stdout]     |         ----------------- `current` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `mid` is never read
[INFO] [stdout]   --> src/ghost/secondbatch.rs:6:24
[INFO] [stdout]    |
[INFO] [stdout]  6 |     let mut mid: i64 = 0;
[INFO] [stdout]    |                        ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 10 |         mid = (low + high) / 2;
[INFO] [stdout]    |         ---------------------- `mid` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `MyStack` is never constructed
[INFO] [stdout]  --> src/data_structures/stack.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | pub struct MyStack<T> {
[INFO] [stdout]   |            ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]   = note: `#[deny(unused_unconstructable_pub_struct)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcode` (bin "leetcode" test) due to 1 previous error; 9 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "0d33af5b3e95d36c5cca916b8f0ed8b4e1d6b5a74f5bf834ede567174ad1fa20", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0d33af5b3e95d36c5cca916b8f0ed8b4e1d6b5a74f5bf834ede567174ad1fa20", kill_on_drop: false }`
[INFO] [stdout] 0d33af5b3e95d36c5cca916b8f0ed8b4e1d6b5a74f5bf834ede567174ad1fa20
