[INFO] cloning repository https://github.com/LeoCenturion/advent_of_code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LeoCenturion/advent_of_code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeoCenturion%2Fadvent_of_code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeoCenturion%2Fadvent_of_code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 12d66439100e9fe367f6fe7ad572886124e6c121 [INFO] checking LeoCenturion/advent_of_code against try#a7b168ac4977e8e93a43448b44847adaa305d5a9 for pr-150557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeoCenturion%2Fadvent_of_code" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LeoCenturion/advent_of_code [INFO] finished tweaking git repo https://github.com/LeoCenturion/advent_of_code [INFO] tweaked toml for git repo https://github.com/LeoCenturion/advent_of_code written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LeoCenturion/advent_of_code on toolchain a7b168ac4977e8e93a43448b44847adaa305d5a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LeoCenturion/advent_of_code 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" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "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 LeoCenturion/advent_of_code against try#a7b168ac4977e8e93a43448b44847adaa305d5a9 for pr-150557 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLeoCenturion%2Fadvent_of_code" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LeoCenturion/advent_of_code [INFO] finished tweaking git repo https://github.com/LeoCenturion/advent_of_code [INFO] tweaked toml for git repo https://github.com/LeoCenturion/advent_of_code written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LeoCenturion/advent_of_code on toolchain a7b168ac4977e8e93a43448b44847adaa305d5a9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LeoCenturion/advent_of_code 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" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded test-case v1.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 04dfb715810a902c16e6bc70df173059eb68787867c76ca5cfe660ac0943aad5 [INFO] running `Command { std: "docker" "start" "-a" "04dfb715810a902c16e6bc70df173059eb68787867c76ca5cfe660ac0943aad5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "04dfb715810a902c16e6bc70df173059eb68787867c76ca5cfe660ac0943aad5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04dfb715810a902c16e6bc70df173059eb68787867c76ca5cfe660ac0943aad5", kill_on_drop: false }` [INFO] [stdout] 04dfb715810a902c16e6bc70df173059eb68787867c76ca5cfe660ac0943aad5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a7b168ac4977e8e93a43448b44847adaa305d5a9" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9969d288997b371d31dfb60f2213da40ecdbc054653a497f7c5a91eabb92a407 [INFO] running `Command { std: "docker" "start" "-a" "9969d288997b371d31dfb60f2213da40ecdbc054653a497f7c5a91eabb92a407", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Checking advent_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling test-case v1.2.1 [INFO] [stdout] warning: unused variable: `window_occupation` [INFO] [stdout] --> src/day_1_sonar_sweep.rs:12:77 [INFO] [stdout] | [INFO] [stdout] 12 | let new_report = report.into_iter().scan(([0; 3], 0, 0), |(window, idx, window_occupation), m| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window_occupation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reverse` is never used [INFO] [stdout] --> src/day_1_sonar_sweep.rs:44:23 [INFO] [stdout] | [INFO] [stdout] 43 | impl InMemoryReport { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] 44 | pub(crate) fn reverse(&mut self) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stdout] warning: unused import: `get_gamma_rate` [INFO] [stdout] --> tests/day_3_binary_diagnostic.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use advent_of_code::day_3_binary_diagnostic::{get_gamma_rate, get_power_consumption}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Lines` [INFO] [stdout] --> tests/test_utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Lines; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Lines` [INFO] [stdout] --> tests/test_utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Lines; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Lines` [INFO] [stdout] --> tests/test_utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Lines; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Position` [INFO] [stdout] --> tests/day_2_dive.rs:3:34 [INFO] [stdout] | [INFO] [stdout] 3 | use advent_of_code::day_2_dive::{Position, move_submarine, move_submarine_2}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> tests/day_1_sonar_sweep.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs::File` [INFO] [stdout] --> tests/day_1_sonar_sweep.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Read` [INFO] [stdout] --> tests/day_1_sonar_sweep.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> tests/day_1_sonar_sweep.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Lines` [INFO] [stdout] --> tests/test_utils.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Lines; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::task::RawWakerVTable` [INFO] [stdout] --> src/day_1_sonar_sweep.rs:80:9 [INFO] [stdout] | [INFO] [stdout] 80 | use std::task::RawWakerVTable; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `test_case::test_case` [INFO] [stdout] --> src/day_1_sonar_sweep.rs:81:9 [INFO] [stdout] | [INFO] [stdout] 81 | use test_case::test_case; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Report` [INFO] [stdout] --> src/day_1_sonar_sweep.rs:84:106 [INFO] [stdout] | [INFO] [stdout] 84 | use crate::day_1_sonar_sweep::{depth_increment_indicator, depth_increment_indicator_sw, Measurement, Report}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `String` is not an iterator [INFO] [stdout] --> tests/day_1_sonar_sweep.rs:30:33 [INFO] [stdout] | [INFO] [stdout] 30 | let ms:Vec = s.map(|line|line.parse::()) [INFO] [stdout] | ^^^ `String` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `String: Iterator` [INFO] [stdout] which is required by `&mut String: Iterator` [INFO] [stdout] `str: Iterator` [INFO] [stdout] which is required by `&mut str: Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/day_1_sonar_sweep.rs:30:38 [INFO] [stdout] | [INFO] [stdout] 30 | let ms:Vec = s.map(|line|line.parse::()) [INFO] [stdout] | ^^^^ ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 30 | let ms:Vec = s.map(|line: /* Type */|line.parse::()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/day_1_sonar_sweep.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | .filter(|parsed| parsed.is_ok()) [INFO] [stdout] | ^^^^^^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 31 | .filter(|parsed: /* Type */| parsed.is_ok()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> tests/day_1_sonar_sweep.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | .map(|parsed| parsed.unwrap()) [INFO] [stdout] | ^^^^^^ ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 32 | .map(|parsed: /* Type */| parsed.unwrap()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent_of_code` (test "day_1_sonar_sweep") due to 4 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `window_occupation` [INFO] [stdout] --> src/day_1_sonar_sweep.rs:12:77 [INFO] [stdout] | [INFO] [stdout] 12 | let new_report = report.into_iter().scan(([0; 3], 0, 0), |(window, idx, window_occupation), m| { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_window_occupation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9969d288997b371d31dfb60f2213da40ecdbc054653a497f7c5a91eabb92a407", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9969d288997b371d31dfb60f2213da40ecdbc054653a497f7c5a91eabb92a407", kill_on_drop: false }` [INFO] [stdout] 9969d288997b371d31dfb60f2213da40ecdbc054653a497f7c5a91eabb92a407