[INFO] cloning repository https://github.com/raywiis/Advent-of-Code-2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/raywiis/Advent-of-Code-2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraywiis%2FAdvent-of-Code-2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraywiis%2FAdvent-of-Code-2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bee66aac93306b463e0ab549afd80cd4085396d3 [INFO] checking raywiis/Advent-of-Code-2019/bee66aac93306b463e0ab549afd80cd4085396d3 against try#2b39fe756f52bc2825bf5b2bfc385cab922dae10 for pr-143011 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fraywiis%2FAdvent-of-Code-2019" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/raywiis/Advent-of-Code-2019 [INFO] finished tweaking git repo https://github.com/raywiis/Advent-of-Code-2019 [INFO] tweaked toml for git repo https://github.com/raywiis/Advent-of-Code-2019 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/raywiis/Advent-of-Code-2019 on toolchain 2b39fe756f52bc2825bf5b2bfc385cab922dae10 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/raywiis/Advent-of-Code-2019 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" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 47646a004184d9420cd050eae28e9dc65f180c1f9ce59fc6ed4a99c4ec19dd28 [INFO] running `Command { std: "docker" "start" "-a" "47646a004184d9420cd050eae28e9dc65f180c1f9ce59fc6ed4a99c4ec19dd28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47646a004184d9420cd050eae28e9dc65f180c1f9ce59fc6ed4a99c4ec19dd28", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47646a004184d9420cd050eae28e9dc65f180c1f9ce59fc6ed4a99c4ec19dd28", kill_on_drop: false }` [INFO] [stdout] 47646a004184d9420cd050eae28e9dc65f180c1f9ce59fc6ed4a99c4ec19dd28 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+2b39fe756f52bc2825bf5b2bfc385cab922dae10" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b2e59fc2eb87f27dd9594ebaafe169ddc975faaeb76f085a855287d5e7604d11 [INFO] running `Command { std: "docker" "start" "-a" "b2e59fc2eb87f27dd9594ebaafe169ddc975faaeb76f085a855287d5e7604d11", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking advent-of-code-2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/lib.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | let target = memory[instruction_ptr + 3]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/lib.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | let target = memory[instruction_ptr + 3]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `backup_mode` [INFO] [stdout] --> src/lib.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | let backup_mode = match modes.0 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_backup_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination_ptr` [INFO] [stdout] --> src/lib.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let destination_ptr = memory[instruction_ptr + 1]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/lib.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | let target = memory[instruction_ptr + 3]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> src/lib.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | let target = memory[instruction_ptr + 3]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `backup_mode` [INFO] [stdout] --> src/lib.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | let backup_mode = match modes.0 { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_backup_mode` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `destination_ptr` [INFO] [stdout] --> src/lib.rs:80:25 [INFO] [stdout] | [INFO] [stdout] 80 | let destination_ptr = memory[instruction_ptr + 1]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_destination_ptr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:261:16 [INFO] [stdout] | [INFO] [stdout] 261 | ans1 = (0. + asin) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - ans1 = (0. + asin) ; [INFO] [stdout] 261 + ans1 = 0. + asin ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:263:16 [INFO] [stdout] | [INFO] [stdout] 263 | ans1 = (std::f64::consts::PI - asin) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 263 - ans1 = (std::f64::consts::PI - asin) ; [INFO] [stdout] 263 + ans1 = std::f64::consts::PI - asin ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 265 | ans1 = (std::f64::consts::PI + asin) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 265 - ans1 = (std::f64::consts::PI + asin) ; [INFO] [stdout] 265 + ans1 = std::f64::consts::PI + asin ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:267:16 [INFO] [stdout] | [INFO] [stdout] 267 | ans1 = (std::f64::consts::PI * 2.0 - asin) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 267 - ans1 = (std::f64::consts::PI * 2.0 - asin) ; [INFO] [stdout] 267 + ans1 = std::f64::consts::PI * 2.0 - asin ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader` and `Result` [INFO] [stdout] --> src/bin/14.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{prelude::*, BufReader, Result}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:261:16 [INFO] [stdout] | [INFO] [stdout] 261 | ans1 = (0. + asin) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 261 - ans1 = (0. + asin) ; [INFO] [stdout] 261 + ans1 = 0. + asin ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:263:16 [INFO] [stdout] | [INFO] [stdout] 263 | ans1 = (std::f64::consts::PI - asin) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 263 - ans1 = (std::f64::consts::PI - asin) ; [INFO] [stdout] 263 + ans1 = std::f64::consts::PI - asin ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:265:16 [INFO] [stdout] | [INFO] [stdout] 265 | ans1 = (std::f64::consts::PI + asin) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 265 - ans1 = (std::f64::consts::PI + asin) ; [INFO] [stdout] 265 + ans1 = std::f64::consts::PI + asin ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/bin/10.rs:267:16 [INFO] [stdout] | [INFO] [stdout] 267 | ans1 = (std::f64::consts::PI * 2.0 - asin) ; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 267 - ans1 = (std::f64::consts::PI * 2.0 - asin) ; [INFO] [stdout] 267 + ans1 = std::f64::consts::PI * 2.0 - asin ; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `point` [INFO] [stdout] --> src/bin/10.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | .map(|(point, angle)| get_radians(&angle)) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ans` [INFO] [stdout] --> src/bin/10.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | let mut ans: f64 = 0.0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ans1` is never read [INFO] [stdout] --> src/bin/10.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut ans1: f64 = 0.0; [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] warning: unused variable: `point` [INFO] [stdout] --> src/bin/10.rs:167:16 [INFO] [stdout] | [INFO] [stdout] 167 | .map(|(point, angle)| get_radians(&angle)) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_point` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | let mut ans: f64 = 0.0; [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: unused variable: `ans` [INFO] [stdout] --> src/bin/10.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | let mut ans: f64 = 0.0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ans` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ans1` is never read [INFO] [stdout] --> src/bin/10.rs:248:13 [INFO] [stdout] | [INFO] [stdout] 248 | let mut ans1: f64 = 0.0; [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/10.rs:247:9 [INFO] [stdout] | [INFO] [stdout] 247 | let mut ans: f64 = 0.0; [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: unused import: `prelude` [INFO] [stdout] --> src/bin/14.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{prelude::*, BufReader, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fuel_count` [INFO] [stdout] --> src/bin/14.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let mut fuel_count = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fuel_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/14.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let mut fuel_count = 0; [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 `INPUT` should have a snake case name [INFO] [stdout] --> src/bin/14.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let INPUT = "13 RXWQR => 4 JXCXB [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp` [INFO] [stdout] --> src/bin/3_1.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bin/5.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | std::mem::replace(&mut memory[target as usize], a + b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 87 | let _ = std::mem::replace(&mut memory[target as usize], a + b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bin/5.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | std::mem::replace(&mut memory[target as usize], a * b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = std::mem::replace(&mut memory[target as usize], a * b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/bin/7.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 77 | let exit = execute(&mut memory, &inputs, &mut outputs); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `&mut Vec`, found `&mut Vec` [INFO] [stdout] --> src/bin/7.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | let exit = execute(&mut memory, &inputs, &mut outputs); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec` [INFO] [stdout] note: expected `&[i64]`, found `&Vec` [INFO] [stdout] --> src/bin/7.rs:77:37 [INFO] [stdout] | [INFO] [stdout] 77 | let exit = execute(&mut memory, &inputs, &mut outputs); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: expected reference `&[i64]` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: expected `&mut Vec`, found `&mut Vec` [INFO] [stdout] --> src/bin/7.rs:77:46 [INFO] [stdout] | [INFO] [stdout] 77 | let exit = execute(&mut memory, &inputs, &mut outputs); [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] --> /opt/rustwide/workdir/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn execute( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bin/5.rs:87:17 [INFO] [stdout] | [INFO] [stdout] 87 | std::mem::replace(&mut memory[target as usize], a + b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 87 | let _ = std::mem::replace(&mut memory[target as usize], a + b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bin/5.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | std::mem::replace(&mut memory[target as usize], a * b); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 95 | let _ = std::mem::replace(&mut memory[target as usize], a * b); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phase` [INFO] [stdout] --> src/bin/16.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for phase in 0..100 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_phase` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `signal` is never read [INFO] [stdout] --> src/bin/16.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | signal = vec!(); [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] warning: unused variable: `phase` [INFO] [stdout] --> src/bin/16.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | for phase in 0..phase_count { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_phase` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `phase` [INFO] [stdout] --> src/bin/16.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for phase in 0..100 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_phase` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `signal` is never read [INFO] [stdout] --> src/bin/16.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | signal = vec!(); [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] warning: unused variable: `phase` [INFO] [stdout] --> src/bin/16.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | for phase in 0..phase_count { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_phase` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2019` (bin "7" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused imports: `BufReader` and `Result` [INFO] [stdout] --> src/bin/14.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{prelude::*, BufReader, Result}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/bin/7.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 77 | let exit = execute(&mut memory, &inputs, &mut outputs); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `&mut Vec`, found `&mut Vec` [INFO] [stdout] --> src/bin/7.rs:77:24 [INFO] [stdout] | [INFO] [stdout] 77 | let exit = execute(&mut memory, &inputs, &mut outputs); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: expected mutable reference `&mut Vec` [INFO] [stdout] found mutable reference `&mut Vec` [INFO] [stdout] note: expected `&[i64]`, found `&Vec` [INFO] [stdout] --> src/bin/7.rs:77:37 [INFO] [stdout] | [INFO] [stdout] 77 | let exit = execute(&mut memory, &inputs, &mut outputs); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: expected reference `&[i64]` [INFO] [stdout] found reference `&Vec` [INFO] [stdout] note: expected `&mut Vec`, found `&mut Vec` [INFO] [stdout] --> src/bin/7.rs:77:46 [INFO] [stdout] | [INFO] [stdout] 77 | let exit = execute(&mut memory, &inputs, &mut outputs); [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] --> /opt/rustwide/workdir/src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn execute( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2019` (bin "7") due to 1 previous error [INFO] [stdout] warning: unused import: `prelude` [INFO] [stdout] --> src/bin/14.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{prelude::*, BufReader, Result}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `fuel_count` [INFO] [stdout] --> src/bin/14.rs:180:13 [INFO] [stdout] | [INFO] [stdout] 180 | let mut fuel_count = 0; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_fuel_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::default::Default` [INFO] [stdout] --> src/bin/13.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::default::Default; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/14.rs:180:9 [INFO] [stdout] | [INFO] [stdout] 180 | let mut fuel_count = 0; [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 `INPUT` should have a snake case name [INFO] [stdout] --> src/bin/14.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let INPUT = "13 RXWQR => 4 JXCXB [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/13.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut oog = oof.next().unwrap_or(Ok(String::from("2"))).unwrap_or(String::from("2")); [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] running `Command { std: "docker" "inspect" "b2e59fc2eb87f27dd9594ebaafe169ddc975faaeb76f085a855287d5e7604d11", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2e59fc2eb87f27dd9594ebaafe169ddc975faaeb76f085a855287d5e7604d11", kill_on_drop: false }` [INFO] [stdout] b2e59fc2eb87f27dd9594ebaafe169ddc975faaeb76f085a855287d5e7604d11