[INFO] cloning repository https://github.com/KevinMGranger/aoc2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KevinMGranger/aoc2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKevinMGranger%2Faoc2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKevinMGranger%2Faoc2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7073f6279353e615cf9fb52f87e7deeadb2d47bd [INFO] checking KevinMGranger/aoc2019 against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKevinMGranger%2Faoc2019" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KevinMGranger/aoc2019 on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KevinMGranger/aoc2019 [INFO] finished tweaking git repo https://github.com/KevinMGranger/aoc2019 [INFO] tweaked toml for git repo https://github.com/KevinMGranger/aoc2019 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/KevinMGranger/aoc2019 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anyhow v1.0.25 [INFO] [stderr] Downloaded thiserror v1.0.9 [INFO] [stderr] Downloaded num-derive v0.3.0 [INFO] [stderr] Downloaded thiserror-impl v1.0.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76f728114385bb86d1f1eb81335a27e73a530635f074beddf25cb682074ac050 [INFO] running `Command { std: "docker" "start" "-a" "76f728114385bb86d1f1eb81335a27e73a530635f074beddf25cb682074ac050", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76f728114385bb86d1f1eb81335a27e73a530635f074beddf25cb682074ac050", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76f728114385bb86d1f1eb81335a27e73a530635f074beddf25cb682074ac050", kill_on_drop: false }` [INFO] [stdout] 76f728114385bb86d1f1eb81335a27e73a530635f074beddf25cb682074ac050 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e2367347f13f531b0997a23e088aa59ffdce78e5a434d57d39134bfc5fb5305 [INFO] running `Command { std: "docker" "start" "-a" "3e2367347f13f531b0997a23e088aa59ffdce78e5a434d57d39134bfc5fb5305", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.25 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Checking day03 v0.1.0 (/opt/rustwide/workdir/day03) [INFO] [stderr] Checking day04 v0.1.0 (/opt/rustwide/workdir/day04) [INFO] [stderr] Checking day01 v0.1.0 (/opt/rustwide/workdir/day01) [INFO] [stdout] warning: function `stdin_range` is never used [INFO] [stdout] --> day04/src/main.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn stdin_range() -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> day04/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | reader.read_line(&mut line); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 8 | let _ = reader.read_line(&mut line); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day03/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow; [INFO] [stdout] | ^^^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day03/src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use anyhow; [INFO] [stdout] | ^^^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `stdin_range` is never used [INFO] [stdout] --> day04/src/main.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn stdin_range() -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> day04/src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | reader.read_line(&mut line); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 8 | let _ = reader.read_line(&mut line); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling thiserror-impl v1.0.9 [INFO] [stderr] Compiling num-derive v0.3.0 [INFO] [stderr] Checking thiserror v1.0.9 [INFO] [stderr] Checking intcode v0.1.0 (/opt/rustwide/workdir/intcode) [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> intcode/src/lib.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, ensure, format_err, Error, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> intcode/src/lib.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, ensure, format_err, Error, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day09 v0.1.0 (/opt/rustwide/workdir/day09) [INFO] [stderr] Checking day05 v0.1.0 (/opt/rustwide/workdir/day05) [INFO] [stderr] Checking day07 v0.1.0 (/opt/rustwide/workdir/day07) [INFO] [stderr] Checking day11 v0.1.0 (/opt/rustwide/workdir/day11) [INFO] [stderr] Checking day13 v0.1.0 (/opt/rustwide/workdir/day13) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> intcode/src/lib.rs:357:44 [INFO] [stdout] | [INFO] [stdout] 357 | assert_eq!(cpu.execute(None).unwrap(), Event::Halted); [INFO] [stdout] | ------- ^^^^ expected `&mut dyn FnMut() -> Option`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 397 | / tests! { [INFO] [stdout] 398 | | day02_main_example { [INFO] [stdout] 399 | | prog: vec![1,9,10,3,2,3,11,0,99,30,40,50], [INFO] [stdout] 400 | | final: vec![3500,9,10,70, 2,3,11,0,99,30,40,50], [INFO] [stdout] ... | [INFO] [stdout] 425 | | } [INFO] [stdout] 426 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ ---------------------------------------- [INFO] [stdout] = note: this error originates in the macro `tests` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day05/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day11/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, bail, format_err, Error, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day11/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, bail, format_err, Error, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day09/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, bail, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day05/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day07/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, format_err, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> day07/src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | 'p1: for phase1 in phase_range.clone() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> day07/src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | 'p2: for phase2 in phase_range.clone() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> day07/src/main.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 68 | 'p3: for phase3 in phase_range.clone() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> day07/src/main.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 69 | 'p4: for phase4 in phase_range.clone() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `new_with_io` found for struct `IntcodeComputer` in the current scope [INFO] [stdout] --> day05/src/main.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | let mut cpu = IntcodeComputer::new_with_io( [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `IntcodeComputer` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `IntcodeComputer`, consider using `IntcodeComputer::new` which returns `IntcodeComputer` [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn new(program: Vec) -> IntcodeComputer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day05` (bin "day05") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no function or associated item named `new_with_io` found for struct `IntcodeComputer` in the current scope [INFO] [stdout] --> day05/src/main.rs:7:36 [INFO] [stdout] | [INFO] [stdout] 7 | let mut cpu = IntcodeComputer::new_with_io( [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `IntcodeComputer` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `IntcodeComputer`, consider using `IntcodeComputer::new` which returns `IntcodeComputer` [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn new(program: Vec) -> IntcodeComputer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> intcode/src/lib.rs:382:47 [INFO] [stdout] | [INFO] [stdout] 382 | let res = cpu.execute(input).unwrap(); [INFO] [stdout] | ------- ^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] ... [INFO] [stdout] 428 | / iotests! { [INFO] [stdout] 429 | | day05_custom_io { [INFO] [stdout] 430 | | prog: vec![3, 5, 4, 5, 99, 0], [INFO] [stdout] 431 | | final: vec![3, 5, 4, 5, 99, 6], [INFO] [stdout] ... | [INFO] [stdout] 440 | | }; [INFO] [stdout] 441 | | } [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ ---------------------------------------- [INFO] [stdout] = note: this error originates in the macro `iotests` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider using `Option::expect` to unwrap the `Option<_>` value, panicking if the value is an `Option::None` [INFO] [stdout] | [INFO] [stdout] 382 | let res = cpu.execute(input.expect("REASON")).unwrap(); [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day11/src/main.rs:105:39 [INFO] [stdout] | [INFO] [stdout] 105 | let color = match cpu.execute(Some(*panel_color as isize))? { [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `anyhow` is imported redundantly [INFO] [stdout] --> day13/src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::{self, bail, format_err, Error, Result}; [INFO] [stdout] | ^^^^ the item `anyhow` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `day05` (bin "day05" test) due to 2 previous errors; 1 warning emitted [INFO] [stdout] warning: unused import: `std::collections::VecDeque` [INFO] [stdout] --> day13/src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::collections::VecDeque; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryInto` [INFO] [stdout] --> day13/src/main.rs:13:29 [INFO] [stdout] | [INFO] [stdout] 13 | use std::convert::{TryFrom, TryInto}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day11/src/main.rs:113:59 [INFO] [stdout] | [INFO] [stdout] 113 | let rotation = if let HaveOutput(x) = cpu.execute(Some(*panel_color as isize))? { [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day09/src/main.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | match cpu.execute(input.take())? { [INFO] [stdout] | ------- ^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<{integer}>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day07/src/main.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | dbg!(cpu.execute(Some(phase_setting))?); [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> intcode/src/lib.rs:445:36 [INFO] [stdout] | [INFO] [stdout] 445 | assert_eq!(cpu.execute(input).unwrap(), event); [INFO] [stdout] | ------- ^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ ---------------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day11/src/main.rs:105:39 [INFO] [stdout] | [INFO] [stdout] 105 | let color = match cpu.execute(Some(*panel_color as isize))? { [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `day09` (bin "day09" test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `day11` (bin "day11" test) due to 3 previous errors; 1 warning emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day07/src/main.rs:11:49 [INFO] [stdout] | [INFO] [stdout] 11 | if let HaveOutput(x) = dbg!(cpu.execute(Some(signal))?) { [INFO] [stdout] | ------- ^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option<{integer}>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<{integer}>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day11/src/main.rs:113:59 [INFO] [stdout] | [INFO] [stdout] 113 | let rotation = if let HaveOutput(x) = cpu.execute(Some(*panel_color as isize))? { [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day07/src/main.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | dbg!(cpu.execute(None)?); [INFO] [stdout] | ------- ^^^^ expected `&mut dyn FnMut() -> Option`, found `Option<_>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<_>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `score` is assigned to, but never used [INFO] [stdout] --> day13/src/main.rs:168:13 [INFO] [stdout] | [INFO] [stdout] 168 | let mut score = 0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_score` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `score` is never read [INFO] [stdout] --> day13/src/main.rs:180:21 [INFO] [stdout] | [INFO] [stdout] 180 | score = tile; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day13/src/main.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | let mut prog = first_arg_to_prog()?; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day07/src/main.rs:26:46 [INFO] [stdout] | [INFO] [stdout] 26 | if let RequestingInput = cpu.execute(Some(phase_signal))? { [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `day11` (bin "day11") due to 3 previous errors; 1 warning emitted [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day07/src/main.rs:33:32 [INFO] [stdout] | [INFO] [stdout] 33 | match self.cpu.execute(Some(signal))? { [INFO] [stdout] | ------- ^^^^^^^^^^^^ expected `&mut dyn FnMut() -> Option`, found `Option` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:294:12 [INFO] [stdout] | [INFO] [stdout] 294 | pub fn execute(&mut self, input: &mut dyn FnMut() -> Option) -> Result { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `intcode` (lib test) due to 4 previous errors; 1 warning emitted [INFO] [stdout] error: aborting due to 5 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `day07` (bin "day07") due to 6 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3e2367347f13f531b0997a23e088aa59ffdce78e5a434d57d39134bfc5fb5305", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e2367347f13f531b0997a23e088aa59ffdce78e5a434d57d39134bfc5fb5305", kill_on_drop: false }` [INFO] [stdout] 3e2367347f13f531b0997a23e088aa59ffdce78e5a434d57d39134bfc5fb5305