[INFO] cloning repository https://github.com/qberg/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/qberg/leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqberg%2Fleetcode-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqberg%2Fleetcode-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 55a87bf20c91f5d501779b693e737c3f67cb1a19 [INFO] checking qberg/leetcode-rust against master#1ca8b71cff69b0c48e40ceb66d01b9f8d30b2492 for pr-118553-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqberg%2Fleetcode-rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qberg/leetcode-rust on toolchain 1ca8b71cff69b0c48e40ceb66d01b9f8d30b2492 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ca8b71cff69b0c48e40ceb66d01b9f8d30b2492" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qberg/leetcode-rust [INFO] finished tweaking git repo https://github.com/qberg/leetcode-rust [INFO] tweaked toml for git repo https://github.com/qberg/leetcode-rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/qberg/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" "+1ca8b71cff69b0c48e40ceb66d01b9f8d30b2492" "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 [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking qberg/leetcode-rust against try#a1ab9307c2d2e67595eb3bb22fd707ccd1f71e33 for pr-118553-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqberg%2Fleetcode-rust" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qberg/leetcode-rust on toolchain a1ab9307c2d2e67595eb3bb22fd707ccd1f71e33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a1ab9307c2d2e67595eb3bb22fd707ccd1f71e33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qberg/leetcode-rust [INFO] finished tweaking git repo https://github.com/qberg/leetcode-rust [INFO] tweaked toml for git repo https://github.com/qberg/leetcode-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/qberg/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" "+a1ab9307c2d2e67595eb3bb22fd707ccd1f71e33" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a1ab9307c2d2e67595eb3bb22fd707ccd1f71e33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d95d85426cb4ad1f5bb7552f3597e189a2536c8d625e9c7f463d6fc828faf46c [INFO] running `Command { std: "docker" "start" "-a" "d95d85426cb4ad1f5bb7552f3597e189a2536c8d625e9c7f463d6fc828faf46c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d95d85426cb4ad1f5bb7552f3597e189a2536c8d625e9c7f463d6fc828faf46c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d95d85426cb4ad1f5bb7552f3597e189a2536c8d625e9c7f463d6fc828faf46c", kill_on_drop: false }` [INFO] [stdout] d95d85426cb4ad1f5bb7552f3597e189a2536c8d625e9c7f463d6fc828faf46c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a1ab9307c2d2e67595eb3bb22fd707ccd1f71e33" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a9cc86c75af26a5f0fb2b63ee2622461e049e7f545d83d906f62794f3f71d24b [INFO] running `Command { std: "docker" "start" "-a" "a9cc86c75af26a5f0fb2b63ee2622461e049e7f545d83d906f62794f3f71d24b", kill_on_drop: false }` [INFO] [stderr] Checking leetcode-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `itertools` [INFO] [stdout] --> src/solutions/p0038_count_and_say.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `itertools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `itertools` [INFO] [stdout] --> src/solutions/p0038_count_and_say.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^ use of undeclared crate or module `itertools` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/solutions/p0698_can_partition_k_subsets.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | if nums.len() < k || sum % k != 0 { [INFO] [stdout] | ---------- ^ expected `usize`, found `i32` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 6 | if nums.len() < k.try_into().unwrap() || sum % k != 0 { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/solutions/p0698_can_partition_k_subsets.rs:4:63 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn can_partition_k_subsets(nums: Vec, k: i32) -> bool { [INFO] [stdout] | ----------------------- ^^^^ expected `bool`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/solutions/p0698_can_partition_k_subsets.rs:6:25 [INFO] [stdout] | [INFO] [stdout] 6 | if nums.len() < k || sum % k != 0 { [INFO] [stdout] | ---------- ^ expected `usize`, found `i32` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 6 | if nums.len() < k.try_into().unwrap() || sum % k != 0 { [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/solutions/p0698_can_partition_k_subsets.rs:4:63 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn can_partition_k_subsets(nums: Vec, k: i32) -> bool { [INFO] [stdout] | ----------------------- ^^^^ expected `bool`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_peak_one_dim` found for struct `p0162_find_peak_element::Solution` in the current scope [INFO] [stdout] --> src/solutions/p0162_find_peak_element.rs:31:23 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ------------------- function or associated item `find_peak_one_dim` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 31 | Solution::find_peak_one_dim(&arr), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `Solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `find_peak_one_dim` found for struct `p0162_find_peak_element::Solution` in the current scope [INFO] [stdout] --> src/solutions/p0162_find_peak_element.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Solution {} [INFO] [stdout] | ------------------- function or associated item `find_peak_one_dim` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 37 | Solution::find_peak_one_dim(&arr), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ function or associated item not found in `Solution` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `group_by` found for struct `Chars` in the current scope [INFO] [stdout] --> src/solutions/p0038_count_and_say.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 15 | let word = to_say [INFO] [stdout] | ____________________- [INFO] [stdout] 16 | | .chars() [INFO] [stdout] 17 | | .group_by(|&c| c) [INFO] [stdout] | | -^^^^^^^^ method not found in `Chars<'_>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `group_by` found for struct `Chars` in the current scope [INFO] [stdout] --> src/solutions/p0038_count_and_say.rs:17:14 [INFO] [stdout] | [INFO] [stdout] 15 | let word = to_say [INFO] [stdout] | ____________________- [INFO] [stdout] 16 | | .chars() [INFO] [stdout] 17 | | .group_by(|&c| c) [INFO] [stdout] | | -^^^^^^^^ method not found in `Chars<'_>` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `chars` on type `String` [INFO] [stdout] --> src/solutions/p1657_close_strings.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | match word1.chars().count().cmp(&word2.chars.count()) { [INFO] [stdout] | ^^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 5 | match word1.chars().count().cmp(&word2.chars().count()) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `chars` on type `String` [INFO] [stdout] --> src/solutions/p1657_close_strings.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | match word1.chars().count().cmp(&word2.chars.count()) { [INFO] [stdout] | ^^^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 5 | match word1.chars().count().cmp(&word2.chars().count()) { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/solutions/p1657_close_strings.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | std::cmp::Ordering::Equal => { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | }, [INFO] [stdout] | |_____________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/solutions/p1657_close_strings.rs:6:42 [INFO] [stdout] | [INFO] [stdout] 6 | std::cmp::Ordering::Equal => { [INFO] [stdout] | __________________________________________^ [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | }, [INFO] [stdout] | |_____________^ expected `bool`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0599, E0615. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0432, E0599, E0615. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode-rust` (lib) due to 7 previous errors [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `leetcode-rust` (lib test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "a9cc86c75af26a5f0fb2b63ee2622461e049e7f545d83d906f62794f3f71d24b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a9cc86c75af26a5f0fb2b63ee2622461e049e7f545d83d906f62794f3f71d24b", kill_on_drop: false }` [INFO] [stdout] a9cc86c75af26a5f0fb2b63ee2622461e049e7f545d83d906f62794f3f71d24b