[INFO] cloning repository https://github.com/garethellis0/advent-of-code-2019 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/garethellis0/advent-of-code-2019" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgarethellis0%2Fadvent-of-code-2019", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgarethellis0%2Fadvent-of-code-2019'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c71403f3a9496c34c6faf323b54d33f9d2b3184d [INFO] checking garethellis0/advent-of-code-2019 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgarethellis0%2Fadvent-of-code-2019" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/garethellis0/advent-of-code-2019 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/garethellis0/advent-of-code-2019 [INFO] finished tweaking git repo https://github.com/garethellis0/advent-of-code-2019 [INFO] tweaked toml for git repo https://github.com/garethellis0/advent-of-code-2019 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/garethellis0/advent-of-code-2019 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] d589f1521b786dbdac006c061f2ca4aba509f64f19d368cc96217298234d0413 [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" "d589f1521b786dbdac006c061f2ca4aba509f64f19d368cc96217298234d0413", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d589f1521b786dbdac006c061f2ca4aba509f64f19d368cc96217298234d0413", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d589f1521b786dbdac006c061f2ca4aba509f64f19d368cc96217298234d0413", kill_on_drop: false }` [INFO] [stdout] d589f1521b786dbdac006c061f2ca4aba509f64f19d368cc96217298234d0413 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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] dba8bee39c41afa0b2cdcf3095bc92ba3f939ca121f0481b5e3de98942c00bfb [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" "dba8bee39c41afa0b2cdcf3095bc92ba3f939ca121f0481b5e3de98942c00bfb", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking advent-of-code-2019 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/bin/day_2/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_3/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_1/main.rs from 2018 edition to 2021 [INFO] [stderr] Migrating src/bin/day_4/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/bin/day_3/main.rs (9 fixes) [INFO] [stdout] warning: function is never used: `manhatten_distance` [INFO] [stdout] --> src/bin/day_3/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn manhatten_distance(cell: &Cell) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closer_cell` [INFO] [stdout] --> src/bin/day_3/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn closer_cell<'a>(cell1: &'a Cell, cell2: &'a Cell) -> &'a Cell { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `segmentsIntersection` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn segmentsIntersection(seg1: &PathSegment, seg2: &PathSegment) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `segments_intersection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findIntersections` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn findIntersections(paths: Vec<&Path>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_intersections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wireLengthToPoint` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn wireLengthToPoint(cell: &Cell, path: &Path) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `wire_length_to_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cumulativeWireLength` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:217:4 [INFO] [stdout] | [INFO] [stdout] 217 | fn cumulativeWireLength(inter: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `cumulative_wire_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `manhatten_distance` [INFO] [stdout] --> src/bin/day_3/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn manhatten_distance(cell: &Cell) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `closer_cell` [INFO] [stdout] --> src/bin/day_3/main.rs:180:4 [INFO] [stdout] | [INFO] [stdout] 180 | fn closer_cell<'a>(cell1: &'a Cell, cell2: &'a Cell) -> &'a Cell { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `segmentsIntersection` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:106:4 [INFO] [stdout] | [INFO] [stdout] 106 | fn segmentsIntersection(seg1: &PathSegment, seg2: &PathSegment) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `segments_intersection` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `findIntersections` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:150:4 [INFO] [stdout] | [INFO] [stdout] 150 | fn findIntersections(paths: Vec<&Path>) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `find_intersections` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wireLengthToPoint` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:189:4 [INFO] [stdout] | [INFO] [stdout] 189 | fn wireLengthToPoint(cell: &Cell, path: &Path) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `wire_length_to_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `cumulativeWireLength` should have a snake case name [INFO] [stdout] --> src/bin/day_3/main.rs:217:4 [INFO] [stdout] | [INFO] [stdout] 217 | fn cumulativeWireLength(inter: &Intersection) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `cumulative_wire_length` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/bin/day_1/main.rs (6 fixes) [INFO] [stdout] warning: function is never used: `part1` [INFO] [stdout] --> src/bin/day_1/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn part1(f: &File) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `part1` [INFO] [stdout] --> src/bin/day_1/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn part1(f: &File) -> Result { [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] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `itertools` [INFO] [stdout] --> src/bin/day_4/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [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 E0463`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code-2019` due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] Fixed src/bin/day_2/main.rs (11 fixes) [INFO] [stdout] warning: function `parseInstructionsAndData` should have a snake case name [INFO] [stdout] --> src/bin/day_2/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn parseInstructionsAndData(str: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `parse_instructions_and_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readIntcodeProgram` should have a snake case name [INFO] [stdout] --> src/bin/day_2/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn readIntcodeProgram(f: &File) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `read_intcode_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/day_2/main.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | readIntcodeProgram(&f); [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: function `parseInstructionsAndData` should have a snake case name [INFO] [stdout] --> src/bin/day_2/main.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn parseInstructionsAndData(str: String) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `parse_instructions_and_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `readIntcodeProgram` should have a snake case name [INFO] [stdout] --> src/bin/day_2/main.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn readIntcodeProgram(f: &File) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `read_intcode_program` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/day_2/main.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | readIntcodeProgram(&f); [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `itertools` [INFO] [stdout] --> src/bin/day_4/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ can't find crate [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 E0463`. [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" "dba8bee39c41afa0b2cdcf3095bc92ba3f939ca121f0481b5e3de98942c00bfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dba8bee39c41afa0b2cdcf3095bc92ba3f939ca121f0481b5e3de98942c00bfb", kill_on_drop: false }` [INFO] [stdout] dba8bee39c41afa0b2cdcf3095bc92ba3f939ca121f0481b5e3de98942c00bfb