[INFO] cloning repository https://github.com/Sonnenhut/aoc2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sonnenhut/aoc2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSonnenhut%2Faoc2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSonnenhut%2Faoc2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b2d6c53492181be15a78967dea2b1cf365201b87 [INFO] checking Sonnenhut/aoc2019 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSonnenhut%2Faoc2019" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Sonnenhut/aoc2019 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Sonnenhut/aoc2019 [INFO] finished tweaking git repo https://github.com/Sonnenhut/aoc2019 [INFO] tweaked toml for git repo https://github.com/Sonnenhut/aoc2019 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/Sonnenhut/aoc2019 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--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-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f0ed4a051299690cd9f05f59d6a3ac15f2e12a6b4ac3268999ab68cbabea7e4d [INFO] running `Command { std: "docker" "start" "-a" "f0ed4a051299690cd9f05f59d6a3ac15f2e12a6b4ac3268999ab68cbabea7e4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f0ed4a051299690cd9f05f59d6a3ac15f2e12a6b4ac3268999ab68cbabea7e4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0ed4a051299690cd9f05f59d6a3ac15f2e12a6b4ac3268999ab68cbabea7e4d", kill_on_drop: false }` [INFO] [stdout] f0ed4a051299690cd9f05f59d6a3ac15f2e12a6b4ac3268999ab68cbabea7e4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae9da033e5f259a7939041129523bceb26b79cc6dc5328430a7f063406a31dec [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" "ae9da033e5f259a7939041129523bceb26b79cc6dc5328430a7f063406a31dec", kill_on_drop: false }` [INFO] [stderr] Checking aoc2019 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/intcode.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 48 | let(p1,p2) = self.params(¶m_modes); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 68 | 7 => self.write_at(3, ¶m_modes, (p1? < p2?) as i64), // less-than [INFO] [stdout] | ^^^^ mutable borrow occurs here -- immutable borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/intcode.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 48 | let(p1,p2) = self.params(¶m_modes); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | 2 => self.write_at(3, ¶m_modes, p1? * p2?), // mul [INFO] [stdout] | ^^^^ -- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/intcode.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 48 | let(p1,p2) = self.params(¶m_modes); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 49 | match op { [INFO] [stdout] 50 | 1 => self.write_at(3, ¶m_modes, p1? + p2?), // add [INFO] [stdout] | ^^^^ -- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/intcode.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 48 | let(p1,p2) = self.params(¶m_modes); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 69 | 8 => self.write_at(3, ¶m_modes, (p1? == p2?) as i64), // eq [INFO] [stdout] | ^^^^ mutable borrow occurs here -- immutable borrow later used here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/intcode.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 48 | let(p1,p2) = self.params(¶m_modes); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 68 | 7 => self.write_at(3, ¶m_modes, (p1? < p2?) as i64), // less-than [INFO] [stdout] | ^^^^ mutable borrow occurs here -- immutable borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/intcode.rs:51:18 [INFO] [stdout] | [INFO] [stdout] 48 | let(p1,p2) = self.params(¶m_modes); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | 2 => self.write_at(3, ¶m_modes, p1? * p2?), // mul [INFO] [stdout] | ^^^^ -- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/intcode.rs:50:18 [INFO] [stdout] | [INFO] [stdout] 48 | let(p1,p2) = self.params(¶m_modes); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 49 | match op { [INFO] [stdout] 50 | 1 => self.write_at(3, ¶m_modes, p1? + p2?), // add [INFO] [stdout] | ^^^^ -- immutable borrow later used here [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/intcode.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 48 | let(p1,p2) = self.params(¶m_modes); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 69 | 8 => self.write_at(3, ¶m_modes, (p1? == p2?) as i64), // eq [INFO] [stdout] | ^^^^ mutable borrow occurs here -- immutable borrow later used here [INFO] [stdout] | [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/bin/day23.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aoc2019::intcode::IntCode` [INFO] [stdout] --> src/bin/day22.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use aoc2019::intcode::IntCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap`, `HashMap`, `HashSet`, `LinkedList` [INFO] [stdout] --> src/bin/day23.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{BinaryHeap, HashMap, HashSet, LinkedList}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day23.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::DebugTuple` [INFO] [stdout] --> src/bin/day23.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::DebugTuple; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/day23.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RemAssign`, `Sub` [INFO] [stdout] --> src/bin/day23.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{RemAssign, Sub}; [INFO] [stdout] | ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Iter` [INFO] [stdout] --> src/bin/day23.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SyncSender` [INFO] [stdout] --> src/bin/day23.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::mpsc::{Receiver, Sender, SyncSender}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/bin/day23.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/bin/day23.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/day23.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap`, `HashMap`, `HashSet`, `LinkedList` [INFO] [stdout] --> src/bin/day22.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet, BinaryHeap, LinkedList}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/bin/day22.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Iter` [INFO] [stdout] --> src/bin/day22.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day22.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/day22.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RemAssign`, `Sub` [INFO] [stdout] --> src/bin/day22.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops::{Sub, RemAssign}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::DebugTuple` [INFO] [stdout] --> src/bin/day22.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fmt::DebugTuple; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/day22.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | modulo((a * x_i + b), modulus) as usize [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printChannel` should have a snake case name [INFO] [stdout] --> src/bin/day25.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn printChannel(rcv: &Receiver){ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `print_channel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idle` [INFO] [stdout] --> src/bin/day07.rs:23:38 [INFO] [stdout] | [INFO] [stdout] 23 | let IntCodeClient {snd, rcv, idle} = IntCode::run_async(&mem); [INFO] [stdout] | ^^^^ help: try ignoring the field: `idle: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network_id` [INFO] [stdout] --> src/bin/day23.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | .map(|network_id| IntCode::run_async(mem)) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/day23.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | computers.iter().enumerate().for_each(|(i, c)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network_id` [INFO] [stdout] --> src/bin/day23.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | .map(|network_id| IntCode::run_async(mem)) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/day23.rs:67:49 [INFO] [stdout] | [INFO] [stdout] 67 | computers.iter().enumerate().for_each(|(i, c)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Computer` [INFO] [stdout] --> src/bin/day23.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | struct Computer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stdout] --> src/bin/day06.rs:26:40 [INFO] [stdout] | [INFO] [stdout] 26 | [origin_distance, target_distance].into_iter().flatten().sum() [INFO] [stdout] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printChannel` should have a snake case name [INFO] [stdout] --> src/bin/day25.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn printChannel(rcv: &Receiver){ [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `print_channel` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` 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] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time::Duration` [INFO] [stdout] --> src/bin/day11.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | computers[dest_addr as usize].snd.send(x); [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: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | computers[dest_addr as usize].snd.send(y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | computers[dest_addr as usize].snd.send(x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | computers[dest_addr as usize].snd.send(y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | computers[0].snd.send(x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | computers[0].snd.send(y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/day19.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aoc2019::intcode::IntCode` [INFO] [stdout] --> src/bin/day20.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use aoc2019::intcode::IntCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/bin/day20.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet, BinaryHeap}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Map` [INFO] [stdout] --> src/bin/day20.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::{Map, repeat}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Iter` [INFO] [stdout] --> src/bin/day20.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day20.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/day20.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::char::ToLowercase` [INFO] [stdout] --> src/bin/day18.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::char::ToLowercase; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/bin/day18.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [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] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/bin/day18.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day18.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `portalCoord` [INFO] [stdout] --> src/bin/day20.rs:113:27 [INFO] [stdout] | [INFO] [stdout] 113 | .filter(|(portalCoord,charr)| *charr == '.') [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_portalCoord` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `portalCoord` [INFO] [stdout] --> src/bin/day20.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | .filter(|(portalCoord,charr)| charr.is_alphabetic()) [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_portalCoord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `portalCoord` [INFO] [stdout] --> src/bin/day20.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|(portalCoord,charr)| *charr) [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_portalCoord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `charr` [INFO] [stdout] --> src/bin/day20.rs:120:86 [INFO] [stdout] | [INFO] [stdout] 120 | let portal_with_loc: Option<(String, Coord)> = portal.map(|(portalCoord, charr)|{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_charr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/day20.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | .filter(|(x,c)| c.is_alphabetic()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `portalCoord` [INFO] [stdout] --> src/bin/day20.rs:178:19 [INFO] [stdout] | [INFO] [stdout] 178 | .filter(|(portalCoord,charr)| *charr == '.') [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_portalCoord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/bin/day18.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let mut keys = keys(&maze); [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 does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut start = coord.clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let mut next = State { steps: steps + 1, position: neighbour.clone()}; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:113:27 [INFO] [stdout] | [INFO] [stdout] 113 | .filter(|(portalCoord,charr)| *charr == '.') [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | .filter(|(portalCoord,charr)| charr.is_alphabetic()) [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|(portalCoord,charr)| *charr) [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:120:73 [INFO] [stdout] | [INFO] [stdout] 120 | let portal_with_loc: Option<(String, Coord)> = portal.map(|(portalCoord, charr)|{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:178:19 [INFO] [stdout] | [INFO] [stdout] 178 | .filter(|(portalCoord,charr)| *charr == '.') [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut next = State { steps: steps + 1, position: neighbour.clone()}; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `steps:` in this pattern is redundant [INFO] [stdout] --> src/bin/day18.rs:111:28 [INFO] [stdout] | [INFO] [stdout] 111 | while let Some(State { steps: steps, position: position}) = heap.pop() { [INFO] [stdout] | ^^^^^^^^^^^^ help: use shorthand field pattern: `steps` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_shorthand_field_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `position:` in this pattern is redundant [INFO] [stdout] --> src/bin/day18.rs:111:42 [INFO] [stdout] | [INFO] [stdout] 111 | while let Some(State { steps: steps, position: position}) = heap.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `steps:` in this pattern is redundant [INFO] [stdout] --> src/bin/day18.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | while let Some(State { steps: steps, position: position}) = heap.pop() { [INFO] [stdout] | ^^^^^^^^^^^^ help: use shorthand field pattern: `steps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `position:` in this pattern is redundant [INFO] [stdout] --> src/bin/day18.rs:158:42 [INFO] [stdout] | [INFO] [stdout] 158 | while let Some(State { steps: steps, position: position}) = heap.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aoc2019::intcode::IntCode` [INFO] [stdout] --> src/bin/day22.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use aoc2019::intcode::IntCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap`, `HashMap`, `HashSet`, `LinkedList` [INFO] [stdout] --> src/bin/day22.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::{HashMap, HashSet, BinaryHeap, LinkedList}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/bin/day22.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Iter` [INFO] [stdout] --> src/bin/day22.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day22.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/day22.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RemAssign`, `Sub` [INFO] [stdout] --> src/bin/day22.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | use std::ops::{Sub, RemAssign}; [INFO] [stdout] | ^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::DebugTuple` [INFO] [stdout] --> src/bin/day22.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::fmt::DebugTuple; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/day22.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | modulo((a * x_i + b), modulus) as usize [INFO] [stdout] | ^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/bin/day22.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/day22.rs:208:9 [INFO] [stdout] | [INFO] [stdout] 208 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/bin/day24.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | use std::io; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/bin/day24.rs:133:9 [INFO] [stdout] | [INFO] [stdout] 133 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/bin/day24.rs:140:36 [INFO] [stdout] | [INFO] [stdout] 140 | let bugs = parse_bug_tiles((read_lines(24))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/day19.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap`, `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/day21.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet, BinaryHeap}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/bin/day21.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Map`, `repeat` [INFO] [stdout] --> src/bin/day21.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::{Map, repeat}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Iter` [INFO] [stdout] --> src/bin/day21.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day21.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/day21.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added. [INFO] [stdout] --> src/bin/day06.rs:26:40 [INFO] [stdout] | [INFO] [stdout] 26 | [origin_distance, target_distance].into_iter().flatten().sum() [INFO] [stdout] | ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #66145 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/bin/day22.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | assert_eq!(modulo(-3usize,10usize), 7usize); [INFO] [stdout] | ^^^^^^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day22.rs:225:27 [INFO] [stdout] | [INFO] [stdout] 225 | assert_eq!(modulo(-3usize,10usize), 7usize); [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] 225 | assert_eq!(modulo((-3usize).try_into().unwrap(),10usize), 7usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/day21.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let f = sight[5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/bin/day21.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let g = sight[6]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/day21.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let i = sight[8]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/bin/day21.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut j = false; [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: value assigned to `t` is never read [INFO] [stdout] --> src/bin/day21.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut t = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [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] --> src/bin/day21.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut input_str = // "transpiled" from minimal rust code below (to debug/ use some known lang) [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: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap`, `HashMap`, `HashSet` [INFO] [stdout] --> src/bin/day21.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet, BinaryHeap}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/bin/day21.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Map`, `repeat` [INFO] [stdout] --> src/bin/day21.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::{Map, repeat}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Iter` [INFO] [stdout] --> src/bin/day21.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day21.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/day21.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_dump` [INFO] [stdout] --> src/bin/day21.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn print_dump(out: &Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `transpile` [INFO] [stdout] --> src/bin/day21.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn transpile(rust_code: String) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `rust_code_pt2` [INFO] [stdout] --> src/bin/day21.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn rust_code_pt2(sight: Vec) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day22.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | assert_eq!(modulo(-3usize,10usize), 7usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `isize`, found `usize` [INFO] [stdout] | [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] --> src/bin/day22.rs:226:27 [INFO] [stdout] | [INFO] [stdout] 226 | assert_eq!(modulo(3usize,10usize), 3usize); [INFO] [stdout] | ^^^^^^ expected `isize`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: change the type of the numeric literal from `usize` to `isize` [INFO] [stdout] | [INFO] [stdout] 226 | assert_eq!(modulo(3isize,10usize), 3usize); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/bin/day21.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let f = sight[5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `g` [INFO] [stdout] --> src/bin/day21.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let g = sight[6]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_g` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/day21.rs:98:9 [INFO] [stdout] | [INFO] [stdout] 98 | let i = sight[8]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/bin/day21.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | let mut j = false; [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: value assigned to `t` is never read [INFO] [stdout] --> src/bin/day21.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | let mut t = false; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/bin/day21.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let input = "###..#.##"; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day21.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | let mut input_str = // "transpiled" from minimal rust code below (to debug/ use some known lang) [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day21.rs:161:13 [INFO] [stdout] | [INFO] [stdout] 161 | let mut rust_code: String = [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/day22.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | assert_eq!(modulo(3usize,10usize), 3usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `isize`, found `usize` [INFO] [stdout] | [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: aborting due to 5 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0600. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc2019` [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: unused import: `std::time::Duration` [INFO] [stdout] --> src/bin/day11.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idle` [INFO] [stdout] --> src/bin/day07.rs:23:38 [INFO] [stdout] | [INFO] [stdout] 23 | let IntCodeClient {snd, rcv, idle} = IntCode::run_async(&mem); [INFO] [stdout] | ^^^^ help: try ignoring the field: `idle: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `aoc2019::intcode::IntCode` [INFO] [stdout] --> src/bin/day20.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use aoc2019::intcode::IntCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Map` [INFO] [stdout] --> src/bin/day20.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::iter::{Map, repeat}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Iter` [INFO] [stdout] --> src/bin/day20.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::path::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day20.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/day20.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day21.rs:189:9 [INFO] [stdout] | [INFO] [stdout] 189 | io::stdout().flush(); [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: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/bin/day23.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BinaryHeap`, `HashMap`, `HashSet`, `LinkedList` [INFO] [stdout] --> src/bin/day23.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{BinaryHeap, HashMap, HashSet, LinkedList}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day23.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::DebugTuple` [INFO] [stdout] --> src/bin/day23.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::fmt::DebugTuple; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter` [INFO] [stdout] --> src/bin/day23.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::iter; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RemAssign`, `Sub` [INFO] [stdout] --> src/bin/day23.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 7 | use std::ops::{RemAssign, Sub}; [INFO] [stdout] | ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Iter` [INFO] [stdout] --> src/bin/day23.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SyncSender` [INFO] [stdout] --> src/bin/day23.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | use std::sync::mpsc::{Receiver, Sender, SyncSender}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::Thread` [INFO] [stdout] --> src/bin/day23.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::thread::Thread; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network_id` [INFO] [stdout] --> src/bin/day23.rs:25:15 [INFO] [stdout] | [INFO] [stdout] 25 | .map(|network_id| IntCode::run_async(mem)) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/day23.rs:32:49 [INFO] [stdout] | [INFO] [stdout] 32 | computers.iter().enumerate().for_each(|(i, c)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network_id` [INFO] [stdout] --> src/bin/day23.rs:57:15 [INFO] [stdout] | [INFO] [stdout] 57 | .map(|network_id| IntCode::run_async(mem)) [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/day23.rs:67:49 [INFO] [stdout] | [INFO] [stdout] 67 | computers.iter().enumerate().for_each(|(i, c)| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::char::ToLowercase` [INFO] [stdout] --> src/bin/day18.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::char::ToLowercase; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::iter::FromIterator` [INFO] [stdout] --> src/bin/day18.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::iter::FromIterator; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/bin/day18.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/bin/day18.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Computer` [INFO] [stdout] --> src/bin/day23.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | struct Computer { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `portalCoord` [INFO] [stdout] --> src/bin/day20.rs:113:27 [INFO] [stdout] | [INFO] [stdout] 113 | .filter(|(portalCoord,charr)| *charr == '.') [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_portalCoord` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `portalCoord` [INFO] [stdout] --> src/bin/day20.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | .filter(|(portalCoord,charr)| charr.is_alphabetic()) [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_portalCoord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `portalCoord` [INFO] [stdout] --> src/bin/day20.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|(portalCoord,charr)| *charr) [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_portalCoord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `charr` [INFO] [stdout] --> src/bin/day20.rs:120:86 [INFO] [stdout] | [INFO] [stdout] 120 | let portal_with_loc: Option<(String, Coord)> = portal.map(|(portalCoord, charr)|{ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_charr` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/day20.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | .filter(|(x,c)| c.is_alphabetic()) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `portalCoord` [INFO] [stdout] --> src/bin/day20.rs:178:19 [INFO] [stdout] | [INFO] [stdout] 178 | .filter(|(portalCoord,charr)| *charr == '.') [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_portalCoord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:40:25 [INFO] [stdout] | [INFO] [stdout] 40 | computers[dest_addr as usize].snd.send(x); [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: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:41:25 [INFO] [stdout] | [INFO] [stdout] 41 | computers[dest_addr as usize].snd.send(y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | computers[dest_addr as usize].snd.send(x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:76:25 [INFO] [stdout] | [INFO] [stdout] 76 | computers[dest_addr as usize].snd.send(y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | computers[0].snd.send(x); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/bin/day23.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | computers[0].snd.send(y); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 20 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day20.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut ex = [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 does not need to be mutable [INFO] [stdout] --> src/bin/day20.rs:243:13 [INFO] [stdout] | [INFO] [stdout] 243 | let mut maze = ex.split('\n').map(|s| s.chars().collect::>()).collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day20.rs:257:13 [INFO] [stdout] | [INFO] [stdout] 257 | let mut unique_portals : HashSet = connected_portals(&maze).keys().cloned().collect(); [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day20.rs:263:13 [INFO] [stdout] | [INFO] [stdout] 263 | let mut ex = [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day20.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | let mut maze = ex.split('\n').map(|s| s.chars().collect::>()).collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:113:27 [INFO] [stdout] | [INFO] [stdout] 113 | .filter(|(portalCoord,charr)| *charr == '.') [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | .filter(|(portalCoord,charr)| charr.is_alphabetic()) [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|(portalCoord,charr)| *charr) [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:120:73 [INFO] [stdout] | [INFO] [stdout] 120 | let portal_with_loc: Option<(String, Coord)> = portal.map(|(portalCoord, charr)|{ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `portalCoord` should have a snake case name [INFO] [stdout] --> src/bin/day20.rs:178:19 [INFO] [stdout] | [INFO] [stdout] 178 | .filter(|(portalCoord,charr)| *charr == '.') [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `portal_coord` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::slice::SliceIndex` [INFO] [stdout] --> src/bin/day18.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::slice::SliceIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 96 | let mut keys = keys(&maze); [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 does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut start = coord.clone(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | let mut next = State { steps: steps + 1, position: neighbour.clone()}; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut next = State { steps: steps + 1, position: neighbour.clone()}; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | let mut ex = [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/day18.rs:298:13 [INFO] [stdout] | [INFO] [stdout] 298 | let mut maze = ex.split('\n').map(|s| s.chars().collect::>()).collect(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `steps:` in this pattern is redundant [INFO] [stdout] --> src/bin/day18.rs:111:28 [INFO] [stdout] | [INFO] [stdout] 111 | while let Some(State { steps: steps, position: position}) = heap.pop() { [INFO] [stdout] | ^^^^^^^^^^^^ help: use shorthand field pattern: `steps` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_shorthand_field_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `position:` in this pattern is redundant [INFO] [stdout] --> src/bin/day18.rs:111:42 [INFO] [stdout] | [INFO] [stdout] 111 | while let Some(State { steps: steps, position: position}) = heap.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `steps:` in this pattern is redundant [INFO] [stdout] --> src/bin/day18.rs:158:28 [INFO] [stdout] | [INFO] [stdout] 158 | while let Some(State { steps: steps, position: position}) = heap.pop() { [INFO] [stdout] | ^^^^^^^^^^^^ help: use shorthand field pattern: `steps` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `position:` in this pattern is redundant [INFO] [stdout] --> src/bin/day18.rs:158:42 [INFO] [stdout] | [INFO] [stdout] 158 | while let Some(State { steps: steps, position: position}) = heap.pop() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ae9da033e5f259a7939041129523bceb26b79cc6dc5328430a7f063406a31dec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae9da033e5f259a7939041129523bceb26b79cc6dc5328430a7f063406a31dec", kill_on_drop: false }` [INFO] [stdout] ae9da033e5f259a7939041129523bceb26b79cc6dc5328430a7f063406a31dec