[INFO] cloning repository https://github.com/huyquanha/leetcode-questions [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/huyquanha/leetcode-questions" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyquanha%2Fleetcode-questions", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyquanha%2Fleetcode-questions'... [INFO] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyquanha%2Fleetcode-questions: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [INFO] cloning repository https://github.com/huyquanha/leetcode-questions [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/huyquanha/leetcode-questions" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyquanha%2Fleetcode-questions", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyquanha%2Fleetcode-questions'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd92ad390f2927d3b9f7ca2d46fbb744098b1abc [INFO] checking huyquanha/leetcode-questions against master#f2d69d5a7c04617d122facd0a7a5bdde0af928ae for pr-138363 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyquanha%2Fleetcode-questions" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/huyquanha/leetcode-questions on toolchain f2d69d5a7c04617d122facd0a7a5bdde0af928ae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/huyquanha/leetcode-questions [INFO] finished tweaking git repo https://github.com/huyquanha/leetcode-questions [INFO] tweaked toml for git repo https://github.com/huyquanha/leetcode-questions written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/huyquanha/leetcode-questions 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" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e68028b73833ea2a72b48bc000d2727d3985b239fb9684f6e9a9c06779481244 [INFO] running `Command { std: "docker" "start" "-a" "e68028b73833ea2a72b48bc000d2727d3985b239fb9684f6e9a9c06779481244", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e68028b73833ea2a72b48bc000d2727d3985b239fb9684f6e9a9c06779481244", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e68028b73833ea2a72b48bc000d2727d3985b239fb9684f6e9a9c06779481244", kill_on_drop: false }` [INFO] [stdout] e68028b73833ea2a72b48bc000d2727d3985b239fb9684f6e9a9c06779481244 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+f2d69d5a7c04617d122facd0a7a5bdde0af928ae" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63a515f55a6436b6371dc3445159fe84c48dde1a7cec8669865ff4ba2cb6fe51 [INFO] running `Command { std: "docker" "start" "-a" "63a515f55a6436b6371dc3445159fe84c48dde1a7cec8669865ff4ba2cb6fe51", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking questions v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `MinPQ` is never constructed [INFO] [stdout] --> src/min_pq.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct MinPQ where T: PartialOrd + Clone { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/min_pq.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl MinPQ where T: PartialOrd + Clone { [INFO] [stdout] | -------------------------------------------- associated items in this implementation [INFO] [stdout] 7 | fn check_is_heap(min_pq: &MinPQ) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn from_vec(keys: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn size(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn min(&self) -> T { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn insert(&mut self, v: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn del_min(&mut self) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn swim(&mut self, mut k: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 93 | fn sink(&mut self, mut k: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | fn swap(&mut self, i: usize, j: usize) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `with_capacity` and `new` are never used [INFO] [stdout] --> src/min_pq.rs:17:10 [INFO] [stdout] | [INFO] [stdout] 6 | impl MinPQ where T: PartialOrd + Clone { [INFO] [stdout] | -------------------------------------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `root` [INFO] [stdout] --> src/bin/recover_bst.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | fn recover_tree(root: &mut Option>>) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_root` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `recover_tree` is never used [INFO] [stdout] --> src/bin/recover_bst.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn recover_tree(root: &mut Option>>) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize` [INFO] [stdout] --> src/bin/longest_common_prefix.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | if i >= s.len() || s[i] != c { [INFO] [stdout] | ^ string indices are ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex` is not implemented for `usize` [INFO] [stdout] but trait `SliceIndex<[_]>` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `[_]`, found `str` [INFO] [stdout] = note: required for `String` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/swap_nodes_in_pairs.rs:54:20 [INFO] [stdout] | [INFO] [stdout] 54 | fn swap_pairs_iter(mut head: Option>) -> Option> { [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: function `swap_pairs` is never used [INFO] [stdout] --> src/bin/swap_nodes_in_pairs.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn swap_pairs(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s_iter` [INFO] [stdout] --> src/bin/regex.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | let mut s_iter = s.chars(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_s_iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `previous_p` [INFO] [stdout] --> src/bin/regex.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | let previous_p: Option = None; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_previous_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_p` [INFO] [stdout] --> src/bin/regex.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let next_p = p_iter.next(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/regex.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | let mut s_iter = s.chars(); [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: function `is_match` is never used [INFO] [stdout] --> src/bin/regex.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn is_match(s: String, p: String) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `questions` (bin "longest_common_prefix") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: function `find_the_array_conc_val` is never used [INFO] [stdout] --> src/bin/array_concat_value.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn find_the_array_conc_val(nums: Vec) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_same_tree` is never used [INFO] [stdout] --> src/bin/same_tree.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn is_same_tree(p: Option>>, q: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_same_tree` is never used [INFO] [stdout] --> src/bin/same_tree.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn is_same_tree(p: Option>>, q: Option>>) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_palindrome` is never used [INFO] [stdout] --> src/bin/longest_palindromic_sub_str.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn longest_palindrome(s: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_fair_pairs_bf` is never used [INFO] [stdout] --> src/bin/fair_pair.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn count_fair_pairs_bf(nums: Vec, lower: i32, upper: i32) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `reverse` is never used [INFO] [stdout] --> src/bin/reverse_i32.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn reverse(x: i32) -> i32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize` [INFO] [stdout] --> src/bin/longest_common_prefix.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | if i >= s.len() || s[i] != c { [INFO] [stdout] | ^ string indices are ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `SliceIndex` is not implemented for `usize` [INFO] [stdout] but trait `SliceIndex<[_]>` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `[_]`, found `str` [INFO] [stdout] = note: required for `String` to implement `Index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `questions` (bin "longest_common_prefix" test) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "63a515f55a6436b6371dc3445159fe84c48dde1a7cec8669865ff4ba2cb6fe51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63a515f55a6436b6371dc3445159fe84c48dde1a7cec8669865ff4ba2cb6fe51", kill_on_drop: false }` [INFO] [stdout] 63a515f55a6436b6371dc3445159fe84c48dde1a7cec8669865ff4ba2cb6fe51