[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 a621e2b446eafb53c7a8569f225e0b8cc2429a68 for pr-162600
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsaurabhkaul%2Frust-leetcode-practice" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-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-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/saurabhkaul/rust-leetcode-practice on toolchain a621e2b446eafb53c7a8569f225e0b8cc2429a68
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a621e2b446eafb53c7a8569f225e0b8cc2429a68" "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" "+a621e2b446eafb53c7a8569f225e0b8cc2429a68" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: binary `rust_leetcode_practice` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /workspace/builds/worker-7-tc2/source/target/.../rust_leetcode_practice
[INFO] [stderr]    |                                                  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `rust-leetcode-practice`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:6:8
[INFO] [stderr]    |
[INFO] [stderr]  6 - name = "rust_leetcode_practice"
[INFO] [stderr]  6 + name = "rust-leetcode-practice"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `rust-leetcode-practice`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:7:19
[INFO] [stderr]    |
[INFO] [stderr]  7 ~ version = "0.1.0"
[INFO] [stderr]  8 + [[bin]]
[INFO] [stderr]  9 + name = "rust-leetcode-practice"
[INFO] [stderr] 10 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `rust_leetcode_practice` (manifest) generated 1 warning
[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/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2
[INFO] running `Command { std: "docker" "start" "c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2" "/opt/rustwide/cargo-home/bin/cargo" "+a621e2b446eafb53c7a8569f225e0b8cc2429a68" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2" "/opt/rustwide/cargo-home/bin/cargo" "+a621e2b446eafb53c7a8569f225e0b8cc2429a68" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] warning: binary `rust_leetcode_practice` should have a kebab-case name
[INFO] [stderr]    |
[INFO] [stderr]  1 | /opt/rustwide/target/.../rust_leetcode_practice
[INFO] [stderr]    |                          ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `cargo::non_kebab_case_bins` is set to `warn` by default
[INFO] [stderr] help: to change the binary name to `rust-leetcode-practice`, convert `package.name`
[INFO] [stderr]   --> Cargo.toml:6:8
[INFO] [stderr]    |
[INFO] [stderr]  6 - name = "rust_leetcode_practice"
[INFO] [stderr]  6 + name = "rust-leetcode-practice"
[INFO] [stderr]    |
[INFO] [stderr] help: to change the binary name to `rust-leetcode-practice`, specify `bin.name`
[INFO] [stderr]   --> Cargo.toml:7:19
[INFO] [stderr]    |
[INFO] [stderr]  7 ~ version = "0.1.0"
[INFO] [stderr]  8 + [[bin]]
[INFO] [stderr]  9 + name = "rust-leetcode-practice"
[INFO] [stderr] 10 + path = "src/main.rs"
[INFO] [stderr]    |
[INFO] [stderr] warning: `rust_leetcode_practice` (manifest) generated 1 warning
[INFO] [stderr]     Checking rust_leetcode_practice v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: 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[E0425]: 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[E0425]: 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<Rc<RefCell<TreeNode>>>) -> Option<Rc<RefCell<TreeNode>>> {
[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<TreeNode> Solution {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: 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<Rc<RefCell<TreeNode>>>) -> Option<Rc<RefCell<TreeNode>>> {
[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<TreeNode> Solution {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: 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<Rc<RefCell<TreeNode>>>) -> Option<Rc<RefCell<TreeNode>>> {
[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<TreeNode> Solution {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: 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<Rc<RefCell<TreeNode>>>) -> Option<Rc<RefCell<TreeNode>>> {
[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<TreeNode> Solution {
[INFO] [stdout]    |     ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: 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 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] 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 `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] 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<remove_n_from_end_link_list::ListNode>`, 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<remove_n_from_end_link_list::ListNode>: Iterator`
[INFO] [stdout] note: the trait `Iterator` must be implemented
[INFO] [stdout]   --> /rustc/a621e2b446eafb53c7a8569f225e0b8cc2429a68/library/core/src/iter/traits/iterator.rs:42:0
[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<remove_n_from_end_link_list::ListNode>`, 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<remove_n_from_end_link_list::ListNode>: Iterator`
[INFO] [stdout] note: the trait `Iterator` must be implemented
[INFO] [stdout]   --> /rustc/a621e2b446eafb53c7a8569f225e0b8cc2429a68/library/core/src/iter/traits/iterator.rs:42:0
[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: E0425, E0599, E0624.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0599, E0624.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[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" "c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2", kill_on_drop: false }`
[INFO] [stdout] c2ff8aafe73b6c63e3d051780c8d8d36a261bd7f43b785514712f2385bf934e2
