[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] testing huyquanha/leetcode-questions against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhuyquanha%2Fleetcode-questions" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [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-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/huyquanha/leetcode-questions on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 63af43c0b51d3974c75192d77f5e3301e53797c54831392fc45b9b5eff077d30 [INFO] running `Command { std: "docker" "start" "-a" "63af43c0b51d3974c75192d77f5e3301e53797c54831392fc45b9b5eff077d30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "63af43c0b51d3974c75192d77f5e3301e53797c54831392fc45b9b5eff077d30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63af43c0b51d3974c75192d77f5e3301e53797c54831392fc45b9b5eff077d30", kill_on_drop: false }` [INFO] [stdout] 63af43c0b51d3974c75192d77f5e3301e53797c54831392fc45b9b5eff077d30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9f46b4a35c0c90058257c10caf3d880cc231583c0e7fe7642f2dc882fe08bb5e [INFO] running `Command { std: "docker" "start" "-a" "9f46b4a35c0c90058257c10caf3d880cc231583c0e7fe7642f2dc882fe08bb5e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling 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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s_iter` [INFO] [stdout] --> src/bin/regex.rs:8:7 [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)]` (part of `#[warn(unused)]`) 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: 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)]` (part of `#[warn(unused)]`) 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] help: the following other types implement trait `SliceIndex` [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/bstr/traits.rs:197:0 [INFO] [stdout] | [INFO] [stdout] = note: `usize` implements `SliceIndex` [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/slice/index.rs:214:0 [INFO] [stdout] | [INFO] [stdout] = note: `usize` implements `SliceIndex<[T]>` [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") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "9f46b4a35c0c90058257c10caf3d880cc231583c0e7fe7642f2dc882fe08bb5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f46b4a35c0c90058257c10caf3d880cc231583c0e7fe7642f2dc882fe08bb5e", kill_on_drop: false }` [INFO] [stdout] 9f46b4a35c0c90058257c10caf3d880cc231583c0e7fe7642f2dc882fe08bb5e