[INFO] cloning repository https://github.com/gudhalarya/leetcode-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gudhalarya/leetcode-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgudhalarya%2Fleetcode-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgudhalarya%2Fleetcode-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 444ec198459d04516bf35c8b8c2fb1347882caa7
[INFO] checking gudhalarya/leetcode-rust against 3154cc1a3e6424e44f438a95007d043ed5ceaaf6 for pr-133502-30
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgudhalarya%2Fleetcode-rust" "/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/gudhalarya/leetcode-rust
[INFO] finished tweaking git repo https://github.com/gudhalarya/leetcode-rust
[INFO] tweaked toml for git repo https://github.com/gudhalarya/leetcode-rust written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/gudhalarya/leetcode-rust on toolchain 3154cc1a3e6424e44f438a95007d043ed5ceaaf6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/gudhalarya/leetcode-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" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "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/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05
[INFO] running `Command { std: "docker" "start" "8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05", 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" "8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05", 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" "8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05" "/opt/rustwide/cargo-home/bin/cargo" "+3154cc1a3e6424e44f438a95007d043ed5ceaaf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking leetcode v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find type `Solution` in this scope
[INFO] [stdout]  --> src/solutions/largest_substring_return.rs:4:6
[INFO] [stdout]   |
[INFO] [stdout] 4 | impl Solution{
[INFO] [stdout]   |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ListNode` in this scope
[INFO] [stdout]  --> src/solutions/join_two_sorted_list.rs:2:42
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                                          ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists<ListNode>(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                       ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Solution` in this scope
[INFO] [stdout]  --> src/solutions/largest_substring_return.rs:4:6
[INFO] [stdout]   |
[INFO] [stdout] 4 | impl Solution{
[INFO] [stdout]   |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ListNode` in this scope
[INFO] [stdout]  --> src/solutions/join_two_sorted_list.rs:2:72
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                                                                        ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists<ListNode>(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                       ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ListNode` in this scope
[INFO] [stdout]  --> src/solutions/join_two_sorted_list.rs:2:98
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                                                                                                  ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists<ListNode>(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                       ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Solution` in this scope
[INFO] [stdout]  --> src/solutions/string_to_integer.rs:1:6
[INFO] [stdout]   |
[INFO] [stdout] 1 | impl Solution {
[INFO] [stdout]   |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ListNode` in this scope
[INFO] [stdout]  --> src/solutions/join_two_sorted_list.rs:2:42
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                                          ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists<ListNode>(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                       ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Solution` in this scope
[INFO] [stdout]  --> src/solutions/integer_to_roman.rs:1:6
[INFO] [stdout]   |
[INFO] [stdout] 1 | impl Solution {
[INFO] [stdout]   |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Solution` in this scope
[INFO] [stdout]  --> src/solutions/three_sum.rs:7:6
[INFO] [stdout]   |
[INFO] [stdout] 7 | impl Solution {
[INFO] [stdout]   |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ListNode` in this scope
[INFO] [stdout]  --> src/solutions/join_two_sorted_list.rs:2:72
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                                                                        ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists<ListNode>(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                       ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `ListNode` in this scope
[INFO] [stdout]  --> src/solutions/join_two_sorted_list.rs:2:98
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                                                                                                  ^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub fn merge_two_lists<ListNode>(list1: Option<Box<ListNode>>, list2: Option<Box<ListNode>>) -> Option<Box<ListNode>> {
[INFO] [stdout]   |                       ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/solutions/three_sum_closest.rs:10:20
[INFO] [stdout]    |
[INFO] [stdout] 10 |                 if ((target-temp).abs()<(target-best_num).abs()){
[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] 10 -                 if ((target-temp).abs()<(target-best_num).abs()){
[INFO] [stdout] 10 +                 if (target-temp).abs()<(target-best_num).abs() {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Solution` in this scope
[INFO] [stdout]  --> src/solutions/string_to_integer.rs:1:6
[INFO] [stdout]   |
[INFO] [stdout] 1 | impl Solution {
[INFO] [stdout]   |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Solution` in this scope
[INFO] [stdout]  --> src/solutions/integer_to_roman.rs:1:6
[INFO] [stdout]   |
[INFO] [stdout] 1 | impl Solution {
[INFO] [stdout]   |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/solutions/three_sum_closest.rs:30:16
[INFO] [stdout]    |
[INFO] [stdout] 30 |             if ((target-sum).abs()<(target-best_num).abs()){
[INFO] [stdout]    |                ^                                          ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 30 -             if ((target-sum).abs()<(target-best_num).abs()){
[INFO] [stdout] 30 +             if (target-sum).abs()<(target-best_num).abs() {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Solution` in this scope
[INFO] [stdout]  --> src/solutions/three_sum.rs:7:6
[INFO] [stdout]   |
[INFO] [stdout] 7 | impl Solution {
[INFO] [stdout]   |      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/solutions/three_sum_closest.rs:10:20
[INFO] [stdout]    |
[INFO] [stdout] 10 |                 if ((target-temp).abs()<(target-best_num).abs()){
[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] 10 -                 if ((target-temp).abs()<(target-best_num).abs()){
[INFO] [stdout] 10 +                 if (target-temp).abs()<(target-best_num).abs() {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]   --> src/solutions/three_sum_closest.rs:30:16
[INFO] [stdout]    |
[INFO] [stdout] 30 |             if ((target-sum).abs()<(target-best_num).abs()){
[INFO] [stdout]    |                ^                                          ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 30 -             if ((target-sum).abs()<(target-best_num).abs()){
[INFO] [stdout] 30 +             if (target-sum).abs()<(target-best_num).abs() {
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `[char]` cannot be indexed by `&usize`
[INFO] [stdout]   --> src/solutions/largest_substring_return.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 |         if v[&left] != v[right]{
[INFO] [stdout]    |              ^^^^^ slice indices are of type `usize` or ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<[char]>` is not implemented for `&usize`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/bstr/traits.rs:201:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/slice/index.rs:179:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `Vec<char>` to implement `Index<&usize>`
[INFO] [stdout] help: remove this reference
[INFO] [stdout]    |
[INFO] [stdout] 28 -         if v[&left] != v[right]{
[INFO] [stdout] 28 +         if v[left] != v[right]{
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `[char]` cannot be indexed by `&usize`
[INFO] [stdout]   --> src/solutions/largest_substring_return.rs:28:14
[INFO] [stdout]    |
[INFO] [stdout] 28 |         if v[&left] != v[right]{
[INFO] [stdout]    |              ^^^^^ slice indices are of type `usize` or ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<[char]>` is not implemented for `&usize`
[INFO] [stdout] help: `usize` implements trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/bstr/traits.rs:201:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<ByteStr>`
[INFO] [stdout]   --> /rustc/3154cc1a3e6424e44f438a95007d043ed5ceaaf6/library/core/src/slice/index.rs:179:0
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SliceIndex<[T]>`
[INFO] [stdout]    = note: required for `Vec<char>` to implement `Index<&usize>`
[INFO] [stdout] help: remove this reference
[INFO] [stdout]    |
[INFO] [stdout] 28 -         if v[&left] != v[right]{
[INFO] [stdout] 28 +         if v[left] != v[right]{
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcode` (bin "leetcode") due to 8 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0277, E0425.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcode` (bin "leetcode" test) due to 8 previous errors; 2 warnings emitted
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05", kill_on_drop: false }`
[INFO] [stdout] 8be620a8a7966c19c6aa141545335716bb6d7311ae0752161644074de3adae05
