[INFO] cloning repository https://github.com/KaloyanYosifov/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KaloyanYosifov/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKaloyanYosifov%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKaloyanYosifov%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9de70b481be397a77c9944db3a490a82d5b6d682 [INFO] checking KaloyanYosifov/leetcode against try#07fecb9cf34c4979a772ba38c99d6d9144768413 for pr-87710 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKaloyanYosifov%2Fleetcode" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KaloyanYosifov/leetcode on toolchain 07fecb9cf34c4979a772ba38c99d6d9144768413 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+07fecb9cf34c4979a772ba38c99d6d9144768413" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KaloyanYosifov/leetcode [INFO] finished tweaking git repo https://github.com/KaloyanYosifov/leetcode [INFO] tweaked toml for git repo https://github.com/KaloyanYosifov/leetcode written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/KaloyanYosifov/leetcode already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+07fecb9cf34c4979a772ba38c99d6d9144768413" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+07fecb9cf34c4979a772ba38c99d6d9144768413" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08a583a8da691007592da0267de7ba6018368f59de6684bb34138b09d385dfc4 [INFO] running `Command { std: "docker" "start" "-a" "08a583a8da691007592da0267de7ba6018368f59de6684bb34138b09d385dfc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08a583a8da691007592da0267de7ba6018368f59de6684bb34138b09d385dfc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08a583a8da691007592da0267de7ba6018368f59de6684bb34138b09d385dfc4", kill_on_drop: false }` [INFO] [stdout] 08a583a8da691007592da0267de7ba6018368f59de6684bb34138b09d385dfc4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+07fecb9cf34c4979a772ba38c99d6d9144768413" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e6888a0d30f99dd45a4200550a3eb4d78361c66acc0f86dfafc0e1ce9c2a022 [INFO] running `Command { std: "docker" "start" "-a" "8e6888a0d30f99dd45a4200550a3eb4d78361c66acc0f86dfafc0e1ce9c2a022", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking arrays v0.1.0 (/opt/rustwide/workdir/arrays) [INFO] [stderr] Checking linked_list_impl v0.1.0 (/opt/rustwide/workdir/linked_list_impl) [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> arrays/src/plus_one.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `plus_one` [INFO] [stdout] --> arrays/src/plus_one.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn plus_one(mut digits: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> arrays/src/find_pivot_index.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pivot_index` [INFO] [stdout] --> arrays/src/find_pivot_index.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn pivot_index(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> arrays/src/diagonal_traverse.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `find_diagonal_order` [INFO] [stdout] --> arrays/src/diagonal_traverse.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn find_diagonal_order(mat: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Solution` [INFO] [stdout] --> arrays/src/largest_number_twice.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Solution; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `dominant_index` [INFO] [stdout] --> arrays/src/largest_number_twice.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn dominant_index(nums: Vec) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> linked_list_impl/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::DerefMut` [INFO] [stdout] --> linked_list_impl/src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::DerefMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> linked_list_impl/src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut new_head = Self::new_with_value(val); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> linked_list_impl/src/lib.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_with_value` [INFO] [stdout] --> linked_list_impl/src/lib.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn new_with_value(value: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get` [INFO] [stdout] --> linked_list_impl/src/lib.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn get(&self, index: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_at_head` [INFO] [stdout] --> linked_list_impl/src/lib.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | fn add_at_head(&mut self, val: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_at_tail` [INFO] [stdout] --> linked_list_impl/src/lib.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | fn add_at_tail(&mut self, val: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_at_index` [INFO] [stdout] --> linked_list_impl/src/lib.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | fn add_at_index(&mut self, index: i32, val: i32) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_at_index` [INFO] [stdout] --> linked_list_impl/src/lib.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | fn delete_at_index(&mut self, index: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `last_item_in_list` [INFO] [stdout] --> linked_list_impl/src/lib.rs:146:8 [INFO] [stdout] | [INFO] [stdout] 146 | fn last_item_in_list(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `item_at_index` [INFO] [stdout] --> linked_list_impl/src/lib.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | fn item_at_index(&mut self, index: i32) -> Option<&mut Self> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_list` [INFO] [stdout] --> linked_list_impl/src/lib.rs:226:13 [INFO] [stdout] | [INFO] [stdout] 226 | let old_list = &list; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `old_list` [INFO] [stdout] --> linked_list_impl/src/lib.rs:230:43 [INFO] [stdout] | [INFO] [stdout] 230 | assert!(matches!(&list.next, Some(old_list))); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_old_list` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> linked_list_impl/src/lib.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut new_head = Self::new_with_value(val); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> linked_list_impl/src/lib.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let mut list = MyLinkedList::new(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.55s [INFO] running `Command { std: "docker" "inspect" "8e6888a0d30f99dd45a4200550a3eb4d78361c66acc0f86dfafc0e1ce9c2a022", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e6888a0d30f99dd45a4200550a3eb4d78361c66acc0f86dfafc0e1ce9c2a022", kill_on_drop: false }` [INFO] [stdout] 8e6888a0d30f99dd45a4200550a3eb4d78361c66acc0f86dfafc0e1ce9c2a022