[INFO] cloning repository https://github.com/martonmoro/dsa
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/martonmoro/dsa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartonmoro%2Fdsa", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartonmoro%2Fdsa'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d7cac2757f0d8e725224b21032e45eecff31173c
[INFO] checking martonmoro/dsa against try#d8be25549d5418405531341b4be6d8538fc3c42e for pr-156160
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmartonmoro%2Fdsa" "/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/martonmoro/dsa
[INFO] removed 12 missing examples
[INFO] finished tweaking git repo https://github.com/martonmoro/dsa
[INFO] tweaked toml for git repo https://github.com/martonmoro/dsa written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/martonmoro/dsa on toolchain d8be25549d5418405531341b4be6d8538fc3c42e
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8be25549d5418405531341b4be6d8538fc3c42e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/martonmoro/dsa 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" "+d8be25549d5418405531341b4be6d8538fc3c42e" "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-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:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 468794edc873fa75835e87d92f4501d81c025274ed4d7a25f6ad05ba71bb10d0
[INFO] running `Command { std: "docker" "start" "468794edc873fa75835e87d92f4501d81c025274ed4d7a25f6ad05ba71bb10d0", 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" "468794edc873fa75835e87d92f4501d81c025274ed4d7a25f6ad05ba71bb10d0" "/opt/rustwide/cargo-home/bin/cargo" "+d8be25549d5418405531341b4be6d8538fc3c42e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "468794edc873fa75835e87d92f4501d81c025274ed4d7a25f6ad05ba71bb10d0", 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" "468794edc873fa75835e87d92f4501d81c025274ed4d7a25f6ad05ba71bb10d0" "/opt/rustwide/cargo-home/bin/cargo" "+d8be25549d5418405531341b4be6d8538fc3c42e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]     Checking dsa v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::VecDeque`
[INFO] [stdout]   --> examples/validate_bst.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::collections::VecDeque;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `dist` in this scope
[INFO] [stdout]  --> examples/ztesting.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     dist[k] = 0;
[INFO] [stdout]   |     ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `dist` in this scope
[INFO] [stdout]  --> examples/ztesting.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 |             if dist[from] != i32::MAX && dist[from] + weight < dist[to] {
[INFO] [stdout]   |                ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `dist` in this scope
[INFO] [stdout]  --> examples/ztesting.rs:7:42
[INFO] [stdout]   |
[INFO] [stdout] 7 |             if dist[from] != i32::MAX && dist[from] + weight < dist[to] {
[INFO] [stdout]   |                                          ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `dist` in this scope
[INFO] [stdout]  --> examples/ztesting.rs:7:64
[INFO] [stdout]   |
[INFO] [stdout] 7 |             if dist[from] != i32::MAX && dist[from] + weight < dist[to] {
[INFO] [stdout]   |                                                                ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `dist` in this scope
[INFO] [stdout]  --> examples/ztesting.rs:8:17
[INFO] [stdout]   |
[INFO] [stdout] 8 |                 dist[to] = dist[from] + weight;
[INFO] [stdout]   |                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `dist` in this scope
[INFO] [stdout]  --> examples/ztesting.rs:8:28
[INFO] [stdout]   |
[INFO] [stdout] 8 |                 dist[to] = dist[from] + weight;
[INFO] [stdout]   |                            ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `ztesting`
[INFO] [stdout]   --> examples/ztesting.rs:13:2
[INFO] [stdout]    |
[INFO] [stdout] 13 | }
[INFO] [stdout]    |  ^ consider adding a `main` function to `examples/ztesting.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `match` arm body without braces
[INFO] [stdout]   --> examples/merge_intervals.rs:38:18
[INFO] [stdout]    |
[INFO] [stdout] 38 |             _ => merged.push(interval);
[INFO] [stdout]    |               -- ^^^^^^^^^^^^^^^^^^^^^ this statement is not surrounded by a body
[INFO] [stdout]    |               |
[INFO] [stdout]    |               while parsing the `match` arm starting here
[INFO] [stdout]    |
[INFO] [stdout] help: replace `;` with `,` to end a `match` arm expression
[INFO] [stdout]    |
[INFO] [stdout] 38 -             _ => merged.push(interval);
[INFO] [stdout] 38 +             _ => merged.push(interval),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `top_k_frequent` in this scope
[INFO] [stdout]   --> examples/top_k_frequent.rs:79:18
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let result = top_k_frequent(nums, k);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `top_k_frequent` in this scope
[INFO] [stdout]   --> examples/top_k_frequent.rs:88:18
[INFO] [stdout]    |
[INFO] [stdout] 88 |     let result = top_k_frequent(nums, k);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `top_k_frequent` in this scope
[INFO] [stdout]   --> examples/top_k_frequent.rs:97:18
[INFO] [stdout]    |
[INFO] [stdout] 97 |     let result = top_k_frequent(nums, k);
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `top_k_frequent` in this scope
[INFO] [stdout]    --> examples/top_k_frequent.rs:106:18
[INFO] [stdout]     |
[INFO] [stdout] 106 |     let result = top_k_frequent(nums, k);
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `top_k_frequent` in this scope
[INFO] [stdout]    --> examples/top_k_frequent.rs:115:18
[INFO] [stdout]     |
[INFO] [stdout] 115 |     let result = top_k_frequent(nums, k);
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `top_k_frequent` in this scope
[INFO] [stdout]    --> examples/top_k_frequent.rs:126:18
[INFO] [stdout]     |
[INFO] [stdout] 126 |     let result = top_k_frequent(nums, k);
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `max_subarray_kadane` is never used
[INFO] [stdout]   --> examples/max_subarray.rs:40:4
[INFO] [stdout]    |
[INFO] [stdout] 40 | fn max_subarray_kadane(nums: &[i32]) -> i32 {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/ztesting.rs:4:5
[INFO] [stdout]    |
[INFO] [stdout]  1 |   fn network_delay_time_bellman_ford(times: &[(i32, i32, i32)], n: i32, k: i32) -> i32 {
[INFO] [stdout]    |                                                                                    --- expected `i32` because of return type
[INFO] [stdout] ...
[INFO] [stdout]  4 | /     for _ in 0..n - 1 {
[INFO] [stdout]  5 | |         let mut updated = false;
[INFO] [stdout]  6 | |         for &(from, to, weight) in times {
[INFO] [stdout]  7 | |             if dist[from] != i32::MAX && dist[from] + weight < dist[to] {
[INFO] [stdout] ...  |
[INFO] [stdout] 12 | |     }
[INFO] [stdout]    | |_____^ expected `i32`, found `()`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `for` loops evaluate to unit type `()`
[INFO] [stdout] help: consider returning a value here
[INFO] [stdout]    |
[INFO] [stdout] 12 ~     }
[INFO] [stdout] 13 +     /* `i32` value */
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0282]: type annotations needed for `Vec<_>`
[INFO] [stdout]   --> examples/merge_intervals.rs:31:9
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut merged = Vec::new();
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 35 |             Some(last) if interval[0] <= last[1] => {
[INFO] [stdout]    |                                          ---- type must be known at this point
[INFO] [stdout]    |
[INFO] [stdout] help: consider giving `merged` an explicit type, where the type for type parameter `T` is specified
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let mut merged: Vec<T> = Vec::new();
[INFO] [stdout]    |                   ++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/network_delay_time.rs:32:27
[INFO] [stdout]    |
[INFO] [stdout] 32 |     heap.push(Reverse((0, k)));
[INFO] [stdout]    |                           ^ expected `usize`, found `i32`
[INFO] [stdout]    |
[INFO] [stdout] help: you can convert an `i32` to a `usize` and panic if the converted value doesn't fit
[INFO] [stdout]    |
[INFO] [stdout] 32 |     heap.push(Reverse((0, k.try_into().unwrap())));
[INFO] [stdout]    |                            ++++++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0601.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]  --> examples/merge_intervals.rs:8:9
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let n = intervals.len();
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `dsa` (example "top_k_frequent") due to 6 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `dsa` (example "ztesting") due to 8 previous errors
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `dsa` (example "network_delay_time") due to 1 previous error
[INFO] [stderr] error: could not compile `dsa` (example "merge_intervals") due to 2 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "468794edc873fa75835e87d92f4501d81c025274ed4d7a25f6ad05ba71bb10d0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "468794edc873fa75835e87d92f4501d81c025274ed4d7a25f6ad05ba71bb10d0", kill_on_drop: false }`
[INFO] [stdout] 468794edc873fa75835e87d92f4501d81c025274ed4d7a25f6ad05ba71bb10d0
