[INFO] cloning repository https://github.com/Yarten/leetcode [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yarten/leetcode" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYarten%2Fleetcode", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYarten%2Fleetcode'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f8e8cc8467c8f18cdc1fbada83d7382f47adfd5a [INFO] testing Yarten/leetcode against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYarten%2Fleetcode" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Yarten/leetcode [INFO] finished tweaking git repo https://github.com/Yarten/leetcode [INFO] tweaked toml for git repo https://github.com/Yarten/leetcode written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Yarten/leetcode on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Yarten/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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "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 [ERROR] error running command: no output for 300 seconds [INFO] testing Yarten/leetcode against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYarten%2Fleetcode" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Yarten/leetcode [INFO] finished tweaking git repo https://github.com/Yarten/leetcode [INFO] tweaked toml for git repo https://github.com/Yarten/leetcode written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Yarten/leetcode on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Yarten/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" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41aec2bc2297b7eaf0d15d965a7745cd9d6b807cb96c5e95877962a949f3f7df [INFO] running `Command { std: "docker" "start" "-a" "41aec2bc2297b7eaf0d15d965a7745cd9d6b807cb96c5e95877962a949f3f7df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41aec2bc2297b7eaf0d15d965a7745cd9d6b807cb96c5e95877962a949f3f7df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41aec2bc2297b7eaf0d15d965a7745cd9d6b807cb96c5e95877962a949f3f7df", kill_on_drop: false }` [INFO] [stdout] 41aec2bc2297b7eaf0d15d965a7745cd9d6b807cb96c5e95877962a949f3f7df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02486079f270930a4e7eed840169e56016d142d78fc8018a268cc2f66943d49d [INFO] running `Command { std: "docker" "start" "-a" "02486079f270930a4e7eed840169e56016d142d78fc8018a268cc2f66943d49d", kill_on_drop: false }` [INFO] [stderr] Compiling leetcode v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/bin/prob1641.rs:13:19 [INFO] [stdout] | [INFO] [stdout] 13 | for ni in (1..n) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - for ni in (1..n) { [INFO] [stdout] 13 + for ni in 1..n { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/bin/prob1641.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | for i in (0..5) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - for i in (0..5) { [INFO] [stdout] 16 + for i in 0..5 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::marker::PhantomData` [INFO] [stdout] --> src/bin/learn_list.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::marker::PhantomData; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/bin/learn_list.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/prob877.rs:154:9 [INFO] [stdout] | [INFO] [stdout] 118 | / 'dfs: loop { [INFO] [stdout] 119 | | let curr_node = stack.last_mut().unwrap(); [INFO] [stdout] ... | [INFO] [stdout] 151 | | } [INFO] [stdout] | |_________- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 154 | return start_state.valid; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::LinkedList` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::LinkedList; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ni` [INFO] [stdout] --> src/bin/prob1641.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | for ni in (1..n) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_ni` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `stack` as mutable more than once at a time [INFO] [stdout] --> src/bin/prob877.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 119 | let curr_node = stack.last_mut().unwrap(); [INFO] [stdout] | ----- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 130 | stack.push(Node::new(piles, curr_state)); [INFO] [stdout] | ^^^^^ ---------- first borrow later used here [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "prob877") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: type `Node` is more private than the item `NullableNodePtr` [INFO] [stdout] --> src/bin/learn_list.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | pub type NullableNodePtr = Option>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ type alias `NullableNodePtr` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `Node` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/bin/learn_list.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `get` exists for struct `HashMap>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/prob146.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | if let Some(it) = self.data_iters.get(key) { [INFO] [stdout] | ^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `K: Eq` [INFO] [stdout] `K: Hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `get_mut` exists for struct `HashMap>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/bin/prob146.rs:31:43 [INFO] [stdout] | [INFO] [stdout] 31 | if let Some(it) = self.data_iters.get_mut(key) { [INFO] [stdout] | ^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `K: Eq` [INFO] [stdout] `K: Hash` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `LRUCache<'_, _, _>` [INFO] [stdout] --> src/bin/prob146.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let x = LRUCache::new(3); [INFO] [stdout] | ^ ---------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `x` an explicit type, where the type for type parameter `K` is specified [INFO] [stdout] | [INFO] [stdout] 41 | let x: LRUCache<'_, K, V> = LRUCache::new(3); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `leetcode` (bin "prob146") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "02486079f270930a4e7eed840169e56016d142d78fc8018a268cc2f66943d49d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02486079f270930a4e7eed840169e56016d142d78fc8018a268cc2f66943d49d", kill_on_drop: false }` [INFO] [stdout] 02486079f270930a4e7eed840169e56016d142d78fc8018a268cc2f66943d49d