[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/7073f6279353e615cf9fb52f87e7deeadb2d47bd against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKevinMGranger%2Faoc2019" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KevinMGranger/aoc2019 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1280fd015d194b8d62d040b96cf6f2f45dc78f4419c4ec12a112e1d40b09be9f [INFO] running `Command { std: "docker" "start" "-a" "1280fd015d194b8d62d040b96cf6f2f45dc78f4419c4ec12a112e1d40b09be9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1280fd015d194b8d62d040b96cf6f2f45dc78f4419c4ec12a112e1d40b09be9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1280fd015d194b8d62d040b96cf6f2f45dc78f4419c4ec12a112e1d40b09be9f", kill_on_drop: false }` [INFO] [stdout] 1280fd015d194b8d62d040b96cf6f2f45dc78f4419c4ec12a112e1d40b09be9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de7958a908217147dad8dfb993e60788d2f012c06ed1c58957e35f2ecf1053f2 [INFO] running `Command { std: "docker" "start" "-a" "de7958a908217147dad8dfb993e60788d2f012c06ed1c58957e35f2ecf1053f2", 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 day01 v0.1.0 (/opt/rustwide/workdir/day01) [INFO] [stderr] Checking day04 v0.1.0 (/opt/rustwide/workdir/day04) [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: 2 warnings emitted [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: 2 warnings 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] [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] [stderr] Checking day05 v0.1.0 (/opt/rustwide/workdir/day05) [INFO] [stderr] Checking day09 v0.1.0 (/opt/rustwide/workdir/day09) [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 day02 v0.1.0 (/opt/rustwide/workdir/day02) [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] 441 | }.expect("REASON") [INFO] [stdout] | +++++++++++++++++ [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[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[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[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 [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 [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [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] [stderr] error: could not compile `day05` (bin "day05" test) due to 2 previous errors [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 `Vec`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/intcode/src/lib.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn new(program: Vec) -> IntcodeComputer { [INFO] [stdout] | ^^^ [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] | ------- ^^^^^^^^^^^^ 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[E0061]: this method 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] | ^^^^^^^-- argument #1 of type `&mut dyn FnMut() -> Option` is missing [INFO] [stdout] | [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] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 18 | match cpu.execute(/* &mut dyn FnMut() -> Option */) { [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] 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 `Event`, found `()` [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] --> 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] | expected because this is `isize` [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 `&mut Vec`, found `&mut Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec` [INFO] [stdout] note: function defined here [INFO] [stdout] --> day02/src/main.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn fix_1202(program: &mut Vec) { [INFO] [stdout] | ^^^^^^^^ ------------------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method 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] | ^^^^^^^-- argument #1 of type `&mut dyn FnMut() -> Option` is missing [INFO] [stdout] | [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] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 35 | let _ = cpu.execute(/* &mut dyn FnMut() -> Option */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [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] 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 `Vec`, found `Vec` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vec` [INFO] [stdout] note: function defined here [INFO] [stdout] --> day02/src/main.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn find_ad_nauseum(initial_program: Vec, target: usize) -> (usize, usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ --------------------------- [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: aborting due to 1 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 3 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] --> 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: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] [stderr] error: could not compile `day09` (bin "day09" test) due to 2 previous errors [INFO] [stderr] error: could not compile `day02` (bin "day02") due to 8 previous errors [INFO] [stdout] error: aborting due to 1 previous error [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 [INFO] [stderr] error: could not compile `day09` (bin "day09") due to 2 previous errors [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] [stderr] error: could not compile `day07` (bin "day07") due to 6 previous errors; 4 warnings emitted [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] 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: 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] [stderr] error: could not compile `day11` (bin "day11" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "de7958a908217147dad8dfb993e60788d2f012c06ed1c58957e35f2ecf1053f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de7958a908217147dad8dfb993e60788d2f012c06ed1c58957e35f2ecf1053f2", kill_on_drop: false }` [INFO] [stdout] de7958a908217147dad8dfb993e60788d2f012c06ed1c58957e35f2ecf1053f2