[INFO] cloning repository https://github.com/GentBinaku/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GentBinaku/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGentBinaku%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGentBinaku%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a51798335faa7e866739a8cb131f9536a1c662a0 [INFO] checking GentBinaku/leetcode/a51798335faa7e866739a8cb131f9536a1c662a0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGentBinaku%2Fleetcode" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GentBinaku/leetcode on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GentBinaku/leetcode [INFO] finished tweaking git repo https://github.com/GentBinaku/leetcode [INFO] tweaked toml for git repo https://github.com/GentBinaku/leetcode written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/GentBinaku/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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 462ec1c357b4ea6b9b93695d4acb656c550d59e942411bc9c4fcc4750ce1fe3a [INFO] running `Command { std: "docker" "start" "-a" "462ec1c357b4ea6b9b93695d4acb656c550d59e942411bc9c4fcc4750ce1fe3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "462ec1c357b4ea6b9b93695d4acb656c550d59e942411bc9c4fcc4750ce1fe3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "462ec1c357b4ea6b9b93695d4acb656c550d59e942411bc9c4fcc4750ce1fe3a", kill_on_drop: false }` [INFO] [stdout] 462ec1c357b4ea6b9b93695d4acb656c550d59e942411bc9c4fcc4750ce1fe3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b83a30620aa8ce2ab2f83654e99e45dc49012ec7f583040cf787888d6f1ab32 [INFO] running `Command { std: "docker" "start" "-a" "4b83a30620aa8ce2ab2f83654e99e45dc49012ec7f583040cf787888d6f1ab32", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `repeated_pattern_string::repeated_substring_pattern` [INFO] [stdout] --> src/easy/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use repeated_pattern_string::repeated_substring_pattern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `move_zeroes::move_zeroes` [INFO] [stdout] --> src/easy/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use move_zeroes::move_zeroes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `monotonic_array::is_monotonic` [INFO] [stdout] --> src/easy/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use monotonic_array::is_monotonic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `roman_to_integer::roman_to_int` [INFO] [stdout] --> src/easy/mod.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub use roman_to_integer::roman_to_int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `maximum_wealth::maximum_wealth` [INFO] [stdout] --> src/easy/mod.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use maximum_wealth::maximum_wealth; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::medium::spiral_matrix::Direction::Right` [INFO] [stdout] --> src/medium/spiral_matrix.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::medium::spiral_matrix::Direction::Right; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `robot::is_robot_bounded` [INFO] [stdout] --> src/medium/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use robot::is_robot_bounded; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spiral_matrix::spiral_order` [INFO] [stdout] --> src/medium/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use spiral_matrix::spiral_order; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `repeated_pattern_string::repeated_substring_pattern` [INFO] [stdout] --> src/easy/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use repeated_pattern_string::repeated_substring_pattern; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `move_zeroes::move_zeroes` [INFO] [stdout] --> src/easy/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use move_zeroes::move_zeroes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `monotonic_array::is_monotonic` [INFO] [stdout] --> src/easy/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use monotonic_array::is_monotonic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::medium::spiral_matrix::Direction::Right` [INFO] [stdout] --> src/medium/spiral_matrix.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::medium::spiral_matrix::Direction::Right; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::medium::spiral_matrix` [INFO] [stdout] --> src/medium/spiral_matrix.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | use crate::medium::spiral_matrix; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `spiral_matrix::spiral_order` [INFO] [stdout] --> src/medium/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use spiral_matrix::spiral_order; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/easy/move_zeroes.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | for (i, item) in nums.clone().iter().enumerate(){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repeated_substring_pattern` is never used [INFO] [stdout] --> src/easy/repeated_pattern_string.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn repeated_substring_pattern(s: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_all_divisors` is never used [INFO] [stdout] --> src/easy/repeated_pattern_string.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn find_all_divisors(n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/easy/repeated_pattern_string.rs:23:4 [INFO] [stdout] | [INFO] [stdout] 23 | fn check(s: &Vec, sub: &[char]) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `move_zeroes` is never used [INFO] [stdout] --> src/easy/move_zeroes.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn move_zeroes(nums: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_monotonic` is never used [INFO] [stdout] --> src/easy/monotonic_array.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn is_monotonic(nums: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roman_to_int` is never used [INFO] [stdout] --> src/easy/roman_to_integer.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maximum_wealth` is never used [INFO] [stdout] --> src/easy/maximum_wealth.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn maximum_wealth(accounts: Vec>) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_robot_bounded` is never used [INFO] [stdout] --> src/medium/robot.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn is_robot_bounded(instructions: String) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Direction` is never used [INFO] [stdout] --> src/medium/spiral_matrix.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_order` is never used [INFO] [stdout] --> src/medium/spiral_matrix.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn spiral_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/easy/move_zeroes.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | for (i, item) in nums.clone().iter().enumerate(){ [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `roman_to_int` is never used [INFO] [stdout] --> src/easy/roman_to_integer.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn roman_to_int(s: String) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `should_true` is never used [INFO] [stdout] --> src/easy/roman_to_integer.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn should_true(){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] running `Command { std: "docker" "inspect" "4b83a30620aa8ce2ab2f83654e99e45dc49012ec7f583040cf787888d6f1ab32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b83a30620aa8ce2ab2f83654e99e45dc49012ec7f583040cf787888d6f1ab32", kill_on_drop: false }` [INFO] [stdout] 4b83a30620aa8ce2ab2f83654e99e45dc49012ec7f583040cf787888d6f1ab32