[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] 2ba22c469dd9a932f942f9ad4e3b870bcf35893b [INFO] checking KaloyanYosifov/leetcode against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKaloyanYosifov%2Fleetcode" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KaloyanYosifov/leetcode on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-11/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9e382002aa281ff7d022d92d24853ca06494e4ebc070051bcebd054bf22462b9 [INFO] running `Command { std: "docker" "start" "-a" "9e382002aa281ff7d022d92d24853ca06494e4ebc070051bcebd054bf22462b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9e382002aa281ff7d022d92d24853ca06494e4ebc070051bcebd054bf22462b9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e382002aa281ff7d022d92d24853ca06494e4ebc070051bcebd054bf22462b9", kill_on_drop: false }` [INFO] [stdout] 9e382002aa281ff7d022d92d24853ca06494e4ebc070051bcebd054bf22462b9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a00a5dd852034fcaa2162f32f2c03dff18287610c2f3d8d9cf2bc345be647e1 [INFO] running `Command { std: "docker" "start" "-a" "4a00a5dd852034fcaa2162f32f2c03dff18287610c2f3d8d9cf2bc345be647e1", kill_on_drop: false }` [INFO] [stderr] Checking linked_list_impl v0.1.0 (/opt/rustwide/workdir/linked_list_impl) [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking arrays v0.1.0 (/opt/rustwide/workdir/arrays) [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: 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: 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/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: 6 warnings emitted [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: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "4a00a5dd852034fcaa2162f32f2c03dff18287610c2f3d8d9cf2bc345be647e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a00a5dd852034fcaa2162f32f2c03dff18287610c2f3d8d9cf2bc345be647e1", kill_on_drop: false }` [INFO] [stdout] 4a00a5dd852034fcaa2162f32f2c03dff18287610c2f3d8d9cf2bc345be647e1