[INFO] cloning repository https://github.com/pearl2201/rust_leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pearl2201/rust_leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpearl2201%2Frust_leetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpearl2201%2Frust_leetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69286a636b7403ce0299a6f88c94aa297454e8cb [INFO] testing pearl2201/rust_leetcode against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpearl2201%2Frust_leetcode" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/pearl2201/rust_leetcode [INFO] finished tweaking git repo https://github.com/pearl2201/rust_leetcode [INFO] tweaked toml for git repo https://github.com/pearl2201/rust_leetcode written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/pearl2201/rust_leetcode on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/pearl2201/rust_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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ebaed3ded73ac5e71e8d7fcc14d522faa904921865e5b649107bd6c93723512 [INFO] running `Command { std: "docker" "start" "-a" "9ebaed3ded73ac5e71e8d7fcc14d522faa904921865e5b649107bd6c93723512", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ebaed3ded73ac5e71e8d7fcc14d522faa904921865e5b649107bd6c93723512", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ebaed3ded73ac5e71e8d7fcc14d522faa904921865e5b649107bd6c93723512", kill_on_drop: false }` [INFO] [stdout] 9ebaed3ded73ac5e71e8d7fcc14d522faa904921865e5b649107bd6c93723512 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 001f30fc0c08281c5ffb01ef1ede02bda1d50472e2c48f9f67b9007c10ad97cf [INFO] running `Command { std: "docker" "start" "-a" "001f30fc0c08281c5ffb01ef1ede02bda1d50472e2c48f9f67b9007c10ad97cf", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling getrandom v0.2.14 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling rust_leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `mem::swap` [INFO] [stdout] --> src/sorting.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Debug, fs, mem::swap}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::helper` [INFO] [stdout] --> src/sorting.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::helper; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/data_structures/queue.rs:76:38 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn delete_head(&mut self) -> Option {} [INFO] [stdout] | ----------- ^^^^^^^^^ expected `Option`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/data_structures/queue.rs:78:38 [INFO] [stdout] | [INFO] [stdout] 78 | pub fn delete_tail(&mut self) -> Option {} [INFO] [stdout] | ----------- ^^^^^^^^^ expected `Option`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/data_structures/queue.rs:80:49 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn delete_ith(&mut self, index: u32) -> Option {} [INFO] [stdout] | ---------- ^^^^^^^^^ expected `Option`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/data_structures/queue.rs:82:38 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn get(&self, index: i32) -> Option<&T> {} [INFO] [stdout] | --- ^^^^^^^^^^ expected `Option<&T>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<&T>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/data_structures/queue.rs:84:68 [INFO] [stdout] | [INFO] [stdout] 84 | fn get_ith_node(node: Option>>, index: i32) -> Option>> {} [INFO] [stdout] | ------------ ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option>>`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option>>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: consider returning the local binding `node` [INFO] [stdout] | [INFO] [stdout] 84 | fn get_ith_node(node: Option>>, index: i32) -> Option>> { node } [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp` [INFO] [stdout] --> src/sorting.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut temp: i32; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/data_structures/queue.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn insert_at_tail(&mut self, obj: T) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/data_structures/queue.rs:74:37 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn insert_at_ith(&mut self, index: u32, obj: T) {} [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `obj` [INFO] [stdout] --> src/data_structures/queue.rs:74:49 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn insert_at_ith(&mut self, index: u32, obj: T) {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_obj` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_leetcode` (lib) due to 5 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "001f30fc0c08281c5ffb01ef1ede02bda1d50472e2c48f9f67b9007c10ad97cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "001f30fc0c08281c5ffb01ef1ede02bda1d50472e2c48f9f67b9007c10ad97cf", kill_on_drop: false }` [INFO] [stdout] 001f30fc0c08281c5ffb01ef1ede02bda1d50472e2c48f9f67b9007c10ad97cf