[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#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaurabhkaul%2Frust-leetcode-practice" "/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/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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/saurabhkaul/rust-leetcode-practice on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99bad52e09582cbb51169086f861bd68b009192ab5283a5caaaeb677c8f195ae [INFO] running `Command { std: "docker" "start" "-a" "99bad52e09582cbb51169086f861bd68b009192ab5283a5caaaeb677c8f195ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99bad52e09582cbb51169086f861bd68b009192ab5283a5caaaeb677c8f195ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99bad52e09582cbb51169086f861bd68b009192ab5283a5caaaeb677c8f195ae", kill_on_drop: false }` [INFO] [stdout] 99bad52e09582cbb51169086f861bd68b009192ab5283a5caaaeb677c8f195ae [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b7b32e7564e6d2ae3c98a98efbe5a9f89e8f3fbe74e5c0e829a5dd6e762c19b [INFO] running `Command { std: "docker" "start" "-a" "2b7b32e7564e6d2ae3c98a98efbe5a9f89e8f3fbe74e5c0e829a5dd6e762c19b", 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)]` 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)]` 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[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/998b6603a58e47f42ccce7a67943234e96b6839e/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[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] 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] 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/998b6603a58e47f42ccce7a67943234e96b6839e/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] [stderr] error: could not compile `rust_leetcode_practice` (bin "rust_leetcode_practice") due to 7 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] running `Command { std: "docker" "inspect" "2b7b32e7564e6d2ae3c98a98efbe5a9f89e8f3fbe74e5c0e829a5dd6e762c19b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b7b32e7564e6d2ae3c98a98efbe5a9f89e8f3fbe74e5c0e829a5dd6e762c19b", kill_on_drop: false }` [INFO] [stdout] 2b7b32e7564e6d2ae3c98a98efbe5a9f89e8f3fbe74e5c0e829a5dd6e762c19b