[INFO] cloning repository https://github.com/saurabhkaul/rust-leetcode-practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/saurabhkaul/rust-leetcode-practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaurabhkaul%2Frust-leetcode-practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaurabhkaul%2Frust-leetcode-practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1920b90d9b9546da209a4742c4f8723521051df1 [INFO] checking saurabhkaul/rust-leetcode-practice against try#e90f1ff63e694965281f833819a486da29772bdf for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaurabhkaul%2Frust-leetcode-practice" "/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/saurabhkaul/rust-leetcode-practice [INFO] finished tweaking git repo https://github.com/saurabhkaul/rust-leetcode-practice [INFO] tweaked toml for git repo https://github.com/saurabhkaul/rust-leetcode-practice written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/saurabhkaul/rust-leetcode-practice on toolchain e90f1ff63e694965281f833819a486da29772bdf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/saurabhkaul/rust-leetcode-practice 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" "+e90f1ff63e694965281f833819a486da29772bdf" "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] checking saurabhkaul/rust-leetcode-practice against try#e90f1ff63e694965281f833819a486da29772bdf for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaurabhkaul%2Frust-leetcode-practice" "/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/saurabhkaul/rust-leetcode-practice [INFO] finished tweaking git repo https://github.com/saurabhkaul/rust-leetcode-practice [INFO] tweaked toml for git repo https://github.com/saurabhkaul/rust-leetcode-practice written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/saurabhkaul/rust-leetcode-practice on toolchain e90f1ff63e694965281f833819a486da29772bdf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/saurabhkaul/rust-leetcode-practice 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" "+e90f1ff63e694965281f833819a486da29772bdf" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a62e6b23f051a1a19fc0716f2b771cdb7e7e848bb0ab8eebc9fc124fba94f60 [INFO] running `Command { std: "docker" "start" "-a" "1a62e6b23f051a1a19fc0716f2b771cdb7e7e848bb0ab8eebc9fc124fba94f60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a62e6b23f051a1a19fc0716f2b771cdb7e7e848bb0ab8eebc9fc124fba94f60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a62e6b23f051a1a19fc0716f2b771cdb7e7e848bb0ab8eebc9fc124fba94f60", kill_on_drop: false }` [INFO] [stdout] 1a62e6b23f051a1a19fc0716f2b771cdb7e7e848bb0ab8eebc9fc124fba94f60 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b0da9e16c13a2775ca6dd5809b35647d050062960b7e8ae64df71094a8471c1 [INFO] running `Command { std: "docker" "start" "-a" "4b0da9e16c13a2775ca6dd5809b35647d050062960b7e8ae64df71094a8471c1", kill_on_drop: false }` [INFO] [stderr] Checking rust_leetcode_practice v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/problems/invert_binary_tree.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use crate::problems::Solution; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/problems/invert_binary_tree.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn invert_tree(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/problems/invert_binary_tree.rs:22:82 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn invert_tree(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/problems/rotate_string.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::problems::Solution; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in module `remove_n_from_end_link_list` [INFO] [stdout] --> src/main.rs:12:51 [INFO] [stdout] | [INFO] [stdout] 12 | println!("{:?}", remove_n_from_end_link_list::run(Some(new_list), 2)) [INFO] [stdout] | ^^^ not found in `remove_n_from_end_link_list` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::reverse_integer::run; [INFO] [stdout] | [INFO] [stdout] help: if you import `run`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 12 - println!("{:?}", remove_n_from_end_link_list::run(Some(new_list), 2)) [INFO] [stdout] 12 + println!("{:?}", run(Some(new_list), 2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/problems/rotate_string.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | if(s.len()!= goal.len()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - if(s.len()!= goal.len()){ [INFO] [stdout] 5 + if s.len()!= goal.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for x in (1..20) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - for x in (1..20) { [INFO] [stdout] 8 + for x in 1..20 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/problems/invert_binary_tree.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 19 + use crate::problems::Solution; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/problems/invert_binary_tree.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn invert_tree(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `TreeNode` in this scope [INFO] [stdout] --> src/problems/invert_binary_tree.rs:22:82 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn invert_tree(root: Option>>) -> Option>> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 21 | impl Solution { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Solution` in this scope [INFO] [stdout] --> src/problems/rotate_string.rs:3:6 [INFO] [stdout] | [INFO] [stdout] 3 | impl Solution { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use crate::problems::Solution; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run` in module `remove_n_from_end_link_list` [INFO] [stdout] --> src/main.rs:12:51 [INFO] [stdout] | [INFO] [stdout] 12 | println!("{:?}", remove_n_from_end_link_list::run(Some(new_list), 2)) [INFO] [stdout] | ^^^ not found in `remove_n_from_end_link_list` [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::reverse_integer::run; [INFO] [stdout] | [INFO] [stdout] help: if you import `run`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 12 - println!("{:?}", remove_n_from_end_link_list::run(Some(new_list), 2)) [INFO] [stdout] 12 + println!("{:?}", run(Some(new_list), 2)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/problems/rotate_string.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | if(s.len()!= goal.len()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 5 - if(s.len()!= goal.len()){ [INFO] [stdout] 5 + if s.len()!= goal.len() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/main.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for x in (1..20) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - for x in (1..20) { [INFO] [stdout] 8 + for x in 1..20 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `new` is private [INFO] [stdout] --> src/main.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | let new_node = ListNode::new(x); [INFO] [stdout] | ^^^ private associated function [INFO] [stdout] | [INFO] [stdout] ::: src/problems/remove_n_from_end_link_list.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | fn new(val: i32) -> Self { [INFO] [stdout] | ------------------------ private associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: associated function `new` is private [INFO] [stdout] --> src/main.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | let new_node = ListNode::new(x); [INFO] [stdout] | ^^^ private associated function [INFO] [stdout] | [INFO] [stdout] ::: src/problems/remove_n_from_end_link_list.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 15 | fn new(val: i32) -> Self { [INFO] [stdout] | ------------------------ private associated function defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `next` exists for struct `Box`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | new_list.next(new_node) [INFO] [stdout] | ^^^^---------- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] | [INFO] [stdout] ::: src/problems/remove_n_from_end_link_list.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListNode { [INFO] [stdout] | ------------------- doesn't satisfy `remove_n_from_end_link_list::ListNode: Iterator` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `remove_n_from_end_link_list::ListNode: Iterator` [INFO] [stdout] which is required by `Box: Iterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/e90f1ff63e694965281f833819a486da29772bdf/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the trait `Iterator` defines an item `next`, but is explicitly unimplemented [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `next` exists for struct `Box`, but its trait bounds were not satisfied [INFO] [stdout] --> src/main.rs:10:18 [INFO] [stdout] | [INFO] [stdout] 10 | new_list.next(new_node) [INFO] [stdout] | ^^^^---------- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] | [INFO] [stdout] ::: src/problems/remove_n_from_end_link_list.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ListNode { [INFO] [stdout] | ------------------- doesn't satisfy `remove_n_from_end_link_list::ListNode: Iterator` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `remove_n_from_end_link_list::ListNode: Iterator` [INFO] [stdout] which is required by `Box: Iterator` [INFO] [stdout] note: the trait `Iterator` must be implemented [INFO] [stdout] --> /rustc/e90f1ff63e694965281f833819a486da29772bdf/library/core/src/iter/traits/iterator.rs:39:1 [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the trait `Iterator` defines an item `next`, but is explicitly unimplemented [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0599, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0599, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_leetcode_practice` (bin "rust_leetcode_practice" test) due to 7 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_leetcode_practice` (bin "rust_leetcode_practice") due to 7 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4b0da9e16c13a2775ca6dd5809b35647d050062960b7e8ae64df71094a8471c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b0da9e16c13a2775ca6dd5809b35647d050062960b7e8ae64df71094a8471c1", kill_on_drop: false }` [INFO] [stdout] 4b0da9e16c13a2775ca6dd5809b35647d050062960b7e8ae64df71094a8471c1