[INFO] cloning repository https://github.com/ke-bab/leet_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ke-bab/leet_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fke-bab%2Fleet_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fke-bab%2Fleet_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 13a6790f0d5994ede3d86b6fcb71ebf87175b0c8 [INFO] checking ke-bab/leet_rust against master#4e1f5d90bca45207605a88e39b1f76abcdb85d2f for pr-123962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fke-bab%2Fleet_rust" "/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/ke-bab/leet_rust on toolchain 4e1f5d90bca45207605a88e39b1f76abcdb85d2f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4e1f5d90bca45207605a88e39b1f76abcdb85d2f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ke-bab/leet_rust [INFO] finished tweaking git repo https://github.com/ke-bab/leet_rust [INFO] tweaked toml for git repo https://github.com/ke-bab/leet_rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ke-bab/leet_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" "+4e1f5d90bca45207605a88e39b1f76abcdb85d2f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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 ke-bab/leet_rust against try#035f40fb95ac1c79b50f07e65650460f3d11e207 for pr-123962 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fke-bab%2Fleet_rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ke-bab/leet_rust on toolchain 035f40fb95ac1c79b50f07e65650460f3d11e207 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ke-bab/leet_rust [INFO] finished tweaking git repo https://github.com/ke-bab/leet_rust [INFO] tweaked toml for git repo https://github.com/ke-bab/leet_rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ke-bab/leet_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" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "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-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 28e51d44d6b22fae47582d33f5038086a598c85745a4dc5c3701df419df6c377 [INFO] running `Command { std: "docker" "start" "-a" "28e51d44d6b22fae47582d33f5038086a598c85745a4dc5c3701df419df6c377", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28e51d44d6b22fae47582d33f5038086a598c85745a4dc5c3701df419df6c377", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28e51d44d6b22fae47582d33f5038086a598c85745a4dc5c3701df419df6c377", kill_on_drop: false }` [INFO] [stdout] 28e51d44d6b22fae47582d33f5038086a598c85745a4dc5c3701df419df6c377 [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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+035f40fb95ac1c79b50f07e65650460f3d11e207" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d94b119e9daad2512012ab67de31c9459cb08e329426fc57bd14d6fdad71d7bc [INFO] running `Command { std: "docker" "start" "-a" "d94b119e9daad2512012ab67de31c9459cb08e329426fc57bd14d6fdad71d7bc", kill_on_drop: false }` [INFO] [stderr] Checking leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 7 | impl ListNode { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | #[inline] [INFO] [stdout] 9 | fn new(val: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Solution` is never constructed [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Solution {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `delete_duplicates` is never used [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Solution { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 20 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:57:40 [INFO] [stdout] | [INFO] [stdout] 57 | fn vec_to_node(case: &Vec) -> 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] warning: unused variable: `head` [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:20:30 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn delete_duplicates(head: Option>) -> Option> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*next_want` which is behind a shared reference [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:67:24 [INFO] [stdout] | [INFO] [stdout] 67 | if next_want.unwrap().val != next_got.unwrap().val { [INFO] [stdout] | ^^^^^^^^^ -------- `*next_want` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because `*next_want` has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::unwrap` takes ownership of the receiver `self`, which moves `*next_want` [INFO] [stdout] --> /rustc/035f40fb95ac1c79b50f07e65650460f3d11e207/library/core/src/option.rs:929:25 [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 67 | if > as Clone>::clone(&next_want).unwrap().val != next_got.unwrap().val { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 67 | if next_want.clone().unwrap().val != next_got.unwrap().val { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*next_got` which is behind a shared reference [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:67:50 [INFO] [stdout] | [INFO] [stdout] 67 | if next_want.unwrap().val != next_got.unwrap().val { [INFO] [stdout] | ^^^^^^^^ -------- `*next_got` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because `*next_got` has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 67 | if next_want.unwrap().val != > as Clone>::clone(&next_got).unwrap().val { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 67 | if next_want.unwrap().val != next_got.clone().unwrap().val { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*next_want` which is behind a shared reference [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 70 | next_want = &next_want.unwrap().next; [INFO] [stdout] | ^^^^^^^^^ -------- `*next_want` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because `*next_want` has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 70 | next_want = &> as Clone>::clone(&next_want).unwrap().next; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 70 | next_want = &next_want.clone().unwrap().next; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:70:38 [INFO] [stdout] | [INFO] [stdout] 65 | if next_want.is_some() { [INFO] [stdout] | --------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 70 | next_want = &next_want.unwrap().next; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*next_got` which is behind a shared reference [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:71:37 [INFO] [stdout] | [INFO] [stdout] 71 | next_got = &next_got.unwrap().next; [INFO] [stdout] | ^^^^^^^^ -------- `*next_got` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because `*next_got` has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 71 | next_got = &> as Clone>::clone(&next_got).unwrap().next; [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 71 | next_got = &next_got.clone().unwrap().next; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/remove_duplicates_from_sorted_list.rs:71:37 [INFO] [stdout] | [INFO] [stdout] 66 | if next_got.is_some() { [INFO] [stdout] | -------- borrow later used here [INFO] [stdout] ... [INFO] [stdout] 71 | next_got = &next_got.unwrap().next; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0507, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "leetcode" test) due to 8 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "d94b119e9daad2512012ab67de31c9459cb08e329426fc57bd14d6fdad71d7bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d94b119e9daad2512012ab67de31c9459cb08e329426fc57bd14d6fdad71d7bc", kill_on_drop: false }` [INFO] [stdout] d94b119e9daad2512012ab67de31c9459cb08e329426fc57bd14d6fdad71d7bc