[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 try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKevinMGranger%2Faoc2019" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KevinMGranger/aoc2019 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-6/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: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded anyhow v1.0.25 [INFO] [stderr] Downloaded num-derive v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c12c9a3b7d934808e17b0dd6baff6013c50a15495efebd730e2ee2c4afe73103 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "c12c9a3b7d934808e17b0dd6baff6013c50a15495efebd730e2ee2c4afe73103", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c12c9a3b7d934808e17b0dd6baff6013c50a15495efebd730e2ee2c4afe73103", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c12c9a3b7d934808e17b0dd6baff6013c50a15495efebd730e2ee2c4afe73103", kill_on_drop: false }` [INFO] [stdout] c12c9a3b7d934808e17b0dd6baff6013c50a15495efebd730e2ee2c4afe73103 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5aa81640ea27da6c11c7880e5d81f177a20c9b48fc64788df85d8386cac19916 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5aa81640ea27da6c11c7880e5d81f177a20c9b48fc64788df85d8386cac19916", 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 num-traits v0.2.10 [INFO] [stderr] Checking day04 v0.1.0 (/opt/rustwide/workdir/day04) [INFO] [stderr] Checking day01 v0.1.0 (/opt/rustwide/workdir/day01) [INFO] [stderr] Checking day03 v0.1.0 (/opt/rustwide/workdir/day03) [INFO] [stdout] warning: function is never used: `stdin_range` [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `stdin_range` [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `closest_crossing` [INFO] [stdout] --> day03/src/main.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | closest_crossing: (isize, isize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `closest_crossing` [INFO] [stdout] --> day03/src/main.rs:120:5 [INFO] [stdout] | [INFO] [stdout] 120 | closest_crossing: (isize, isize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.2 [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] [stderr] Checking day05 v0.1.0 (/opt/rustwide/workdir/day05) [INFO] [stderr] Checking day07 v0.1.0 (/opt/rustwide/workdir/day07) [INFO] [stderr] Checking day13 v0.1.0 (/opt/rustwide/workdir/day13) [INFO] [stderr] Checking day09 v0.1.0 (/opt/rustwide/workdir/day09) [INFO] [stderr] Checking day11 v0.1.0 (/opt/rustwide/workdir/day11) [INFO] [stderr] Checking day02 v0.1.0 (/opt/rustwide/workdir/day02) [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] = note: `#[warn(unused_imports)]` on by default [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] --> intcode/src/lib.rs:357:44 [INFO] [stdout] | [INFO] [stdout] 357 | assert_eq!(cpu.execute(None).unwrap(), Event::Halted); [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut None` [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: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [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] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut input` [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: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [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] 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] = note: `#[warn(unused_imports)]` on by default [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] --> intcode/src/lib.rs:445:36 [INFO] [stdout] | [INFO] [stdout] 445 | assert_eq!(cpu.execute(input).unwrap(), event); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut input` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `score` is assigned to, but never used [INFO] [stdout] --> day13/src/main.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut score = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_score` instead [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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [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] [stderr] error: could not compile `intcode` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] warning: variable `score` is assigned to, but never used [INFO] [stdout] --> day13/src/main.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | let mut score = 0; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_score` instead [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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [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] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [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] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(phase_setting)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [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] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(signal)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<{integer}>` [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] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut None` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<_>` [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] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut input.take()` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<{integer}>` [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] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(phase_signal)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [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] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(signal)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [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] --> day07/src/main.rs:10:26 [INFO] [stdout] | [INFO] [stdout] 10 | dbg!(cpu.execute(Some(phase_setting))?); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(phase_setting)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [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] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(signal)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<{integer}>` [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] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut None` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<_>` [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] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(phase_signal)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [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] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(signal)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 4 warnings 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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(*panel_color as isize)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(*panel_color as isize)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [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] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [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] | ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut input.take()` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option<{integer}>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [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] [INFO] [stdout] error: aborting due to previous error [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] --> day11/src/main.rs:105:39 [INFO] [stdout] | [INFO] [stdout] 105 | let color = match cpu.execute(Some(*panel_color as isize))? { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(*panel_color as isize)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected mutable reference, found enum `Option` [INFO] [stdout] | help: consider mutably borrowing here: `&mut Some(*panel_color as isize)` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut dyn FnMut() -> Option` [INFO] [stdout] found enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [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] --> day02/src/main.rs:16:48 [INFO] [stdout] | [INFO] [stdout] 16 | let mut cpu = IntcodeComputer::new(new_program); [INFO] [stdout] | ^^^^^^^^^^^ expected `isize`, found `usize` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> day02/src/main.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | match cpu.execute() { [INFO] [stdout] | ^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function 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] --> day02/src/main.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 18 | match cpu.execute() { [INFO] [stdout] | ------------- this expression has type `Result` [INFO] [stdout] 19 | Ok(()) if cpu.memory[0] == target => return (noun, verb), [INFO] [stdout] | ^^ expected enum `Event`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day02/src/main.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(()) if cpu.memory[0] == target => return (noun, verb), [INFO] [stdout] | ^^^^^^ expected `isize`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `usize` to an `isize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 19 | Ok(()) if cpu.memory[0] == target.try_into().unwrap() => return (noun, verb), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day02/src/main.rs:16:48 [INFO] [stdout] | [INFO] [stdout] 16 | let mut cpu = IntcodeComputer::new(new_program); [INFO] [stdout] | ^^^^^^^^^^^ expected `isize`, found `usize` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> day02/src/main.rs:18:23 [INFO] [stdout] | [INFO] [stdout] 18 | match cpu.execute() { [INFO] [stdout] | ^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function 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] --> day02/src/main.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 18 | match cpu.execute() { [INFO] [stdout] | ------------- this expression has type `Result` [INFO] [stdout] 19 | Ok(()) if cpu.memory[0] == target => return (noun, verb), [INFO] [stdout] | ^^ expected enum `Event`, found `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day02/src/main.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | Ok(()) if cpu.memory[0] == target => return (noun, verb), [INFO] [stdout] | ^^^^^^ expected `isize`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can convert a `usize` to an `isize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 19 | Ok(()) if cpu.memory[0] == target.try_into().unwrap() => return (noun, verb), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day02/src/main.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | fix_1202(&mut program); [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `isize` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> day02/src/main.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | let _ = cpu.execute(); [INFO] [stdout] | ^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function 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] --> day02/src/main.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | fix_1202(&mut program); [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `isize` [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> day02/src/main.rs:35:21 [INFO] [stdout] | [INFO] [stdout] 35 | let _ = cpu.execute(); [INFO] [stdout] | ^^^^^^^- supplied 0 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] | [INFO] [stdout] note: associated function 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] --> day02/src/main.rs:39:44 [INFO] [stdout] | [INFO] [stdout] 39 | let (noun, verb) = find_ad_nauseum(program, 19690720); [INFO] [stdout] | ^^^^^^^ expected `usize`, found `isize` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> day02/src/main.rs:39:44 [INFO] [stdout] | [INFO] [stdout] 39 | let (noun, verb) = find_ad_nauseum(program, 19690720); [INFO] [stdout] | ^^^^^^^ expected `usize`, found `isize` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "5aa81640ea27da6c11c7880e5d81f177a20c9b48fc64788df85d8386cac19916", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5aa81640ea27da6c11c7880e5d81f177a20c9b48fc64788df85d8386cac19916", kill_on_drop: false }` [INFO] [stdout] 5aa81640ea27da6c11c7880e5d81f177a20c9b48fc64788df85d8386cac19916