[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] checking pearl2201/rust_leetcode against try#bf5ff6675cf10ce009ac02007b064a7cfc4509ac for pr-140558 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpearl2201%2Frust_leetcode" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pearl2201/rust_leetcode on toolchain bf5ff6675cf10ce009ac02007b064a7cfc4509ac [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc2/source/Cargo.toml [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" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a8870db6c4744354e903c2571988907a726609d67c5b66be22a61be7eff34d0f [INFO] running `Command { std: "docker" "start" "-a" "a8870db6c4744354e903c2571988907a726609d67c5b66be22a61be7eff34d0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a8870db6c4744354e903c2571988907a726609d67c5b66be22a61be7eff34d0f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a8870db6c4744354e903c2571988907a726609d67c5b66be22a61be7eff34d0f", kill_on_drop: false }` [INFO] [stdout] a8870db6c4744354e903c2571988907a726609d67c5b66be22a61be7eff34d0f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+bf5ff6675cf10ce009ac02007b064a7cfc4509ac" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 299424b57465266fbdf233cf4bcaf35c6e508d8bc11bd80e6c9081eb37903404 [INFO] running `Command { std: "docker" "start" "-a" "299424b57465266fbdf233cf4bcaf35c6e508d8bc11bd80e6c9081eb37903404", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling proc-macro2 v1.0.81 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Checking either v1.11.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling serde v1.0.198 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling serde_json v1.0.116 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking ciborium-io v0.2.2 [INFO] [stderr] Checking half v2.4.1 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking cast v0.3.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking anes v0.1.6 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking ciborium-ll v0.2.2 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Compiling syn v2.0.60 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking criterion-plot v0.5.0 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling serde_derive v1.0.198 [INFO] [stderr] Checking 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)]` 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:13 [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)]` 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" "299424b57465266fbdf233cf4bcaf35c6e508d8bc11bd80e6c9081eb37903404", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "299424b57465266fbdf233cf4bcaf35c6e508d8bc11bd80e6c9081eb37903404", kill_on_drop: false }` [INFO] [stdout] 299424b57465266fbdf233cf4bcaf35c6e508d8bc11bd80e6c9081eb37903404