[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 try#ccf408f4326a858c00dd845a64a86b16f360a801 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-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GentBinaku/leetcode on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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-tc2/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c938a5aed6c8d503b291843aabe95ce2e0e8c128c150416916d6ef541b5dedd7 [INFO] running `Command { std: "docker" "start" "-a" "c938a5aed6c8d503b291843aabe95ce2e0e8c128c150416916d6ef541b5dedd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c938a5aed6c8d503b291843aabe95ce2e0e8c128c150416916d6ef541b5dedd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c938a5aed6c8d503b291843aabe95ce2e0e8c128c150416916d6ef541b5dedd7", kill_on_drop: false }` [INFO] [stdout] c938a5aed6c8d503b291843aabe95ce2e0e8c128c150416916d6ef541b5dedd7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db5cce6368b5663a51bc5eb4af3e249313be977347c7d0de6e77ccaacb265ccc [INFO] running `Command { std: "docker" "start" "-a" "db5cce6368b5663a51bc5eb4af3e249313be977347c7d0de6e77ccaacb265ccc", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Checking leetcode v0.0.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/medium/spiral_matrix.rs (2 fixes) [INFO] [stderr] Fixed src/easy/mod.rs (3 fixes) [INFO] [stderr] Fixed src/medium/mod.rs (1 fix) [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 `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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/medium/mod.rs (1 fix) [INFO] [stderr] Fixed src/easy/mod.rs (2 fixes) [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:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_order` is never used [INFO] [stdout] --> src/medium/spiral_matrix.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn spiral_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking leetcode v0.0.0 (/tmp/fixit) [INFO] [stdout] error[E0432]: unresolved import `crate::easy::roman_to_int` [INFO] [stdout] --> src/easy/roman_to_integer.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | use crate::easy::roman_to_int; [INFO] [stdout] | ^^^^^^^^^^^^^------------ [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `roman_to_integer` [INFO] [stdout] | no `roman_to_int` in `easy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::medium::is_robot_bounded` [INFO] [stdout] --> src/medium/robot.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | use crate::medium::is_robot_bounded; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `is_robot_bounded` in `medium` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found module `maximum_wealth` [INFO] [stdout] --> src/easy/maximum_wealth.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | maximum_wealth(vec![vec![1, 2, 3], vec![3, 2, 1]]), [INFO] [stdout] | ^^^^^^^^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: consider importing this function instead [INFO] [stdout] | [INFO] [stdout] 7 + use crate::easy::maximum_wealth::maximum_wealth; [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:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Direction { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `spiral_order` is never used [INFO] [stdout] --> src/medium/spiral_matrix.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn spiral_order(matrix: Vec>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [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] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (lib test) due to 4 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "db5cce6368b5663a51bc5eb4af3e249313be977347c7d0de6e77ccaacb265ccc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db5cce6368b5663a51bc5eb4af3e249313be977347c7d0de6e77ccaacb265ccc", kill_on_drop: false }` [INFO] [stdout] db5cce6368b5663a51bc5eb4af3e249313be977347c7d0de6e77ccaacb265ccc