[INFO] cloning repository https://github.com/jlricon/advent-code-2019-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jlricon/advent-code-2019-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlricon%2Fadvent-code-2019-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlricon%2Fadvent-code-2019-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d19aa3737470c020ce5646964b8143b3f2c242b1 [INFO] checking jlricon/advent-code-2019-rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjlricon%2Fadvent-code-2019-rust" "/workspace/builds/worker-98/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-98/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jlricon/advent-code-2019-rust 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/jlricon/advent-code-2019-rust [INFO] finished tweaking git repo https://github.com/jlricon/advent-code-2019-rust [INFO] tweaked toml for git repo https://github.com/jlricon/advent-code-2019-rust written to /workspace/builds/worker-98/source/Cargo.toml [INFO] crate git repo https://github.com/jlricon/advent-code-2019-rust 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-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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] dc6783bb64c02e70b2e71fcacb9e65119255803e3ae61ed9325d4924f41a8829 [INFO] running `Command { std: "docker" "start" "-a" "dc6783bb64c02e70b2e71fcacb9e65119255803e3ae61ed9325d4924f41a8829", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc6783bb64c02e70b2e71fcacb9e65119255803e3ae61ed9325d4924f41a8829", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc6783bb64c02e70b2e71fcacb9e65119255803e3ae61ed9325d4924f41a8829", kill_on_drop: false }` [INFO] [stdout] dc6783bb64c02e70b2e71fcacb9e65119255803e3ae61ed9325d4924f41a8829 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-98/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] 80dfb706cffa9cba3b1d7e646ee818cfc5f35c9725c8f4ca712fdf8a995cfb63 [INFO] running `Command { std: "docker" "start" "-a" "80dfb706cffa9cba3b1d7e646ee818cfc5f35c9725c8f4ca712fdf8a995cfb63", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. [INFO] [stderr] This may cause some dependencies to be built with fewer features enabled than previously. [INFO] [stderr] More information about the resolver changes may be found at https://doc.rust-lang.org/nightly/edition-guide/rust-2021/default-cargo-resolver.html [INFO] [stderr] When building the following dependencies, the given features will no longer be used: [INFO] [stderr] [INFO] [stderr] rand_core v0.5.1: getrandom [INFO] [stderr] [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling rayon-core v1.6.1 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Checking fixedbitset v0.2.0 [INFO] [stderr] Compiling serde v1.0.103 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Checking same-file v1.0.5 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking walkdir v2.2.9 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling indexmap v1.3.0 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling im v14.1.0 [INFO] [stderr] Checking regex-automata v0.1.8 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking crossbeam-queue v0.2.0 [INFO] [stderr] Checking criterion-plot v0.4.0 [INFO] [stderr] Checking pathfinding v2.0.1 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Checking bitmaps v2.0.0 [INFO] [stderr] Checking num_cpus v1.11.1 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking crossbeam-deque v0.7.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking bstr v0.2.8 [INFO] [stderr] Checking csv-core v0.1.6 [INFO] [stderr] Checking rand_xoshiro v0.4.0 [INFO] [stderr] Checking rand_os v0.2.2 [INFO] [stderr] Checking rand_xoshiro v0.3.1 [INFO] [stderr] Checking rayon v1.2.1 [INFO] [stderr] Checking csv v1.1.1 [INFO] [stderr] Checking tinytemplate v1.0.2 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking sized-chunks v0.5.1 [INFO] [stderr] Compiling serde_derive v1.0.103 [INFO] [stderr] Checking advent-code-2019-rust v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_03.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_01.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_14.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_19.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_13b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_04.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_01_part2.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_03_part2.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_15.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_02.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_07.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_08.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_10.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_12.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_11.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_10b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_13.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_16.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_07b.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_06_graph.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_06.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_17.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_05.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_09.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_22.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_02_part2.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/bin/day_14.rs (1 fix) [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> src/bin/day_19.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut val: usize = 0; [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 `val` is never read [INFO] [stdout] --> src/bin/day_19.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut val: usize = 0; [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: `part1` [INFO] [stdout] --> src/bin/day_19.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_ray` [INFO] [stdout] --> src/bin/day_19.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn print_ray(area: &HashMap<(i64, i64), i64>, s: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day_15.rs (1 fix) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/day_15.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | 'main: loop { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_universe` [INFO] [stdout] --> src/bin/day_15.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn print_universe(universe: &Universe) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day_10.rs (1 fix) [INFO] [stdout] warning: constant is never used: `PI` [INFO] [stdout] --> src/bin/day_10.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const PI: f32 = std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `euclid` [INFO] [stdout] --> src/bin/day_10.rs:54:4 [INFO] [stdout] | [INFO] [stdout] 54 | fn euclid(v: Vector) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sort_by_angle_and_magnitude` [INFO] [stdout] --> src/bin/day_10.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn sort_by_angle_and_magnitude(a: Position, c: Position, refpos: Position) -> Ordering { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/bin/day_10.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day_16.rs (2 fixes) [INFO] [stdout] warning: enum is never used: `Ops` [INFO] [stdout] --> src/bin/day_16.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 2 | enum Ops { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BASE_PATTERN` [INFO] [stdout] --> src/bin/day_16.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | const BASE_PATTERN: [Ops; 4] = [Ops::None, Ops::Plus, Ops::None, Ops::Minus]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `input_list_times_pattern` [INFO] [stdout] --> src/bin/day_16.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn input_list_times_pattern(x: &Vec, pos: usize) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply_1_phase` [INFO] [stdout] --> src/bin/day_16.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn apply_1_phase(inp: &Vec, _n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply_n_phases` [INFO] [stdout] --> src/bin/day_16.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn apply_n_phases(x: Vec, n: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `part1` [INFO] [stdout] --> src/bin/day_16.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day_22.rs (2 fixes) [INFO] [stdout] warning: associated function is never used: `apply` [INFO] [stdout] --> src/bin/day_22.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 34 | fn apply(&self, it: Vector) -> Vector { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_into_new` [INFO] [stdout] --> src/bin/day_22.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn deal_into_new(it: Vector) -> Vector { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cut_n_cards_pos` [INFO] [stdout] --> src/bin/day_22.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn cut_n_cards_pos(it: Vector, n: usize) -> Vector { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cut_n_cards_neg` [INFO] [stdout] --> src/bin/day_22.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn cut_n_cards_neg(it: Vector, n: usize) -> Vector { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cut_n_cards` [INFO] [stdout] --> src/bin/day_22.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn cut_n_cards(it: Vector, n: i32) -> Vector { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `deal_with_increment` [INFO] [stdout] --> src/bin/day_22.rs:98:4 [INFO] [stdout] | [INFO] [stdout] 98 | fn deal_with_increment(it: Vector, n: usize) -> Vector { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `apply_ops` [INFO] [stdout] --> src/bin/day_22.rs:119:4 [INFO] [stdout] | [INFO] [stdout] 119 | fn apply_ops(baseline: Vector, ops: Vector) -> Vector { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/bin/day_22.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let L = 119315717514047; [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/bin/day_22.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let N = 101741582076661; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking criterion v0.3.0 [INFO] [stderr] Migrating benches/bench6.rs from 2018 edition to 2021 [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/bin/day_22.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let L = 119315717514047; [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/bin/day_22.rs:140:9 [INFO] [stdout] | [INFO] [stdout] 140 | let N = 101741582076661; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed benches/bench6.rs (1 fix) [INFO] [stdout] warning: function is never used: `part1` [INFO] [stdout] --> src/bin/day_16.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reaction` [INFO] [stdout] --> src/bin/day_14.rs:158:18 [INFO] [stdout] | [INFO] [stdout] 158 | .map(Reaction::from_line) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reaction` [INFO] [stdout] --> src/bin/day_14.rs:178:18 [INFO] [stdout] | [INFO] [stdout] 178 | .map(Reaction::from_line) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Reaction` [INFO] [stdout] --> src/bin/day_14.rs:198:18 [INFO] [stdout] | [INFO] [stdout] 198 | .map(Reaction::from_line) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Reaction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_ratio_to_make` in this scope [INFO] [stdout] --> src/bin/day_14.rs:145:19 [INFO] [stdout] | [INFO] [stdout] 145 | let ret = get_ratio_to_make(1, 1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 144 | use crate::get_ratio_to_make; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_ratio_to_make` in this scope [INFO] [stdout] --> src/bin/day_14.rs:147:19 [INFO] [stdout] | [INFO] [stdout] 147 | let ret = get_ratio_to_make(3, 7); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 144 | use crate::get_ratio_to_make; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_ratio_to_make` in this scope [INFO] [stdout] --> src/bin/day_14.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | let ret = get_ratio_to_make(3, 5); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 144 | use crate::get_ratio_to_make; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_ratio_to_make` in this scope [INFO] [stdout] --> src/bin/day_14.rs:151:19 [INFO] [stdout] | [INFO] [stdout] 151 | let ret = get_ratio_to_make(5, 10); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 144 | use crate::get_ratio_to_make; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Reaction` in this scope [INFO] [stdout] --> src/bin/day_14.rs:156:22 [INFO] [stdout] | [INFO] [stdout] 156 | let inp: Vec = "1 ORE => 3 E\n3 E => 2 A\n7 A, 1 E => 1 FUEL" [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 144 | use crate::Reaction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/bin/day_14.rs:160:18 [INFO] [stdout] | [INFO] [stdout] 160 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 144 | use crate::HashMap; [INFO] [stdout] | [INFO] [stdout] 144 | use im::HashMap; [INFO] [stdout] | [INFO] [stdout] 144 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Chemical` in this scope [INFO] [stdout] --> src/bin/day_14.rs:160:26 [INFO] [stdout] | [INFO] [stdout] 160 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 144 | use crate::Chemical; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ChemicalToAmount` in this scope [INFO] [stdout] --> src/bin/day_14.rs:160:36 [INFO] [stdout] | [INFO] [stdout] 160 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 144 | use crate::ChemicalToAmount; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_ore` in this scope [INFO] [stdout] --> src/bin/day_14.rs:165:19 [INFO] [stdout] | [INFO] [stdout] 165 | let ret = get_ore(&"FUEL".to_owned(), 1, &map); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 144 | use crate::get_ore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Reaction` in this scope [INFO] [stdout] --> src/bin/day_14.rs:171:22 [INFO] [stdout] | [INFO] [stdout] 171 | let inp: Vec = "10 ORE => 10 A [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 144 | use crate::Reaction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/bin/day_14.rs:180:18 [INFO] [stdout] | [INFO] [stdout] 180 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 144 | use crate::HashMap; [INFO] [stdout] | [INFO] [stdout] 144 | use im::HashMap; [INFO] [stdout] | [INFO] [stdout] 144 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Chemical` in this scope [INFO] [stdout] --> src/bin/day_14.rs:180:26 [INFO] [stdout] | [INFO] [stdout] 180 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 144 | use crate::Chemical; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ChemicalToAmount` in this scope [INFO] [stdout] --> src/bin/day_14.rs:180:36 [INFO] [stdout] | [INFO] [stdout] 180 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 144 | use crate::ChemicalToAmount; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_ore` in this scope [INFO] [stdout] --> src/bin/day_14.rs:185:19 [INFO] [stdout] | [INFO] [stdout] 185 | let ret = get_ore(&"FUEL".to_owned(), 1, &map); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 144 | use crate::get_ore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Reaction` in this scope [INFO] [stdout] --> src/bin/day_14.rs:190:22 [INFO] [stdout] | [INFO] [stdout] 190 | let inp: Vec = "9 ORE => 2 A [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 144 | use crate::Reaction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/bin/day_14.rs:200:18 [INFO] [stdout] | [INFO] [stdout] 200 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 144 | use crate::HashMap; [INFO] [stdout] | [INFO] [stdout] 144 | use im::HashMap; [INFO] [stdout] | [INFO] [stdout] 144 | use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Chemical` in this scope [INFO] [stdout] --> src/bin/day_14.rs:200:26 [INFO] [stdout] | [INFO] [stdout] 200 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 144 | use crate::Chemical; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ChemicalToAmount` in this scope [INFO] [stdout] --> src/bin/day_14.rs:200:36 [INFO] [stdout] | [INFO] [stdout] 200 | let map: HashMap = inp [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 144 | use crate::ChemicalToAmount; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_ore` in this scope [INFO] [stdout] --> src/bin/day_14.rs:205:19 [INFO] [stdout] | [INFO] [stdout] 205 | let ret = get_ore(&"FUEL".to_owned(), 1, &map); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 144 | use crate::get_ore; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 22 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-code-2019-rust` due to 23 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed src/bin/day_15.rs (1 fix) [INFO] [stdout] warning: value assigned to `val` is never read [INFO] [stdout] --> src/bin/day_19.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let mut val: usize = 0; [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 `val` is never read [INFO] [stdout] --> src/bin/day_19.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | let mut val: usize = 0; [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: `part1` [INFO] [stdout] --> src/bin/day_19.rs:9:4 [INFO] [stdout] | [INFO] [stdout] 9 | fn part1() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_ray` [INFO] [stdout] --> src/bin/day_19.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn print_ray(area: &HashMap<(i64, i64), i64>, s: usize) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/day_15.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | 'main: loop { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_universe` [INFO] [stdout] --> src/bin/day_15.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn print_universe(universe: &Universe) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day_10.rs (1 fix) [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/bin/day_10.rs:184:12 [INFO] [stdout] | [INFO] [stdout] 184 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [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" "80dfb706cffa9cba3b1d7e646ee818cfc5f35c9725c8f4ca712fdf8a995cfb63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "80dfb706cffa9cba3b1d7e646ee818cfc5f35c9725c8f4ca712fdf8a995cfb63", kill_on_drop: false }` [INFO] [stdout] 80dfb706cffa9cba3b1d7e646ee818cfc5f35c9725c8f4ca712fdf8a995cfb63