[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 try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSonnenhut%2Faoc2019" "/workspace/builds/worker-27/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-27/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Sonnenhut/aoc2019 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-27/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7de87a422bd3cb87120438745436fb29d4f3ba2e50ea8b2102419dfa6bf51870 [INFO] running `Command { std: "docker" "start" "-a" "7de87a422bd3cb87120438745436fb29d4f3ba2e50ea8b2102419dfa6bf51870", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7de87a422bd3cb87120438745436fb29d4f3ba2e50ea8b2102419dfa6bf51870", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7de87a422bd3cb87120438745436fb29d4f3ba2e50ea8b2102419dfa6bf51870", kill_on_drop: false }` [INFO] [stdout] 7de87a422bd3cb87120438745436fb29d4f3ba2e50ea8b2102419dfa6bf51870 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-27/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9829c510e24c6a10799eb66dc88cf8352d1c540f6206e5ada7911f473f28cfc [INFO] running `Command { std: "docker" "start" "-a" "d9829c510e24c6a10799eb66dc88cf8352d1c540f6206e5ada7911f473f28cfc", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking aoc2019 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [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] [stderr] Migrating src/bin/day05.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day03.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day06.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day07.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day19.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day25.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day00.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day22.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day10.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day24.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day23.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day20.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day14.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day21.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day15.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day04.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day02.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day16.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day01.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day09.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day12.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day13.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day18.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day11.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day17.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day08.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/bin/day06.rs (1 fix) [INFO] [stderr] Fixed src/bin/day19.rs (1 fix) [INFO] [stderr] Fixed src/bin/day07.rs (1 fix) [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: 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] [stderr] Fixed src/bin/day22.rs (9 fixes) [INFO] [stderr] Fixed src/bin/day23.rs (13 fixes) [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 `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 `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 `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 `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 `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 `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: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day20.rs (12 fixes) [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: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day21.rs (10 fixes) [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/bin/day21.rs:99:13 [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:13 [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: 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: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day24.rs (3 fixes) [INFO] [stderr] Fixed src/bin/day23.rs (2 fixes) [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 `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 `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 `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 `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 `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 `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: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day18.rs (14 fixes) [INFO] [stderr] Fixed src/bin/day11.rs (1 fix) [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] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning 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] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day21.rs (2 fixes) [INFO] [stdout] warning: value assigned to `j` is never read [INFO] [stdout] --> src/bin/day21.rs:99:13 [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:13 [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 `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: 3 warnings emitted [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] = note: `#[warn(unused_imports)]` on by default [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] 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] 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 the macro `assert_eq` (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] 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 the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 2 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` due to 6 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0412]: cannot find type `HashSet` in this scope [INFO] [stdout] --> src/bin/day20.rs:257:34 [INFO] [stdout] | [INFO] [stdout] 257 | let mut unique_portals : HashSet = connected_portals(&maze).keys().cloned().collect(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 194 | use std::collections::HashSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "d9829c510e24c6a10799eb66dc88cf8352d1c540f6206e5ada7911f473f28cfc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9829c510e24c6a10799eb66dc88cf8352d1c540f6206e5ada7911f473f28cfc", kill_on_drop: false }` [INFO] [stdout] d9829c510e24c6a10799eb66dc88cf8352d1c540f6206e5ada7911f473f28cfc