[INFO] cloning repository https://github.com/Quinn1876/advent-of-code [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Quinn1876/advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQuinn1876%2Fadvent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQuinn1876%2Fadvent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7136b954e50224270f9556f67836600b8db9cf82 [INFO] checking Quinn1876/advent-of-code against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQuinn1876%2Fadvent-of-code" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Quinn1876/advent-of-code on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Quinn1876/advent-of-code [INFO] finished tweaking git repo https://github.com/Quinn1876/advent-of-code [INFO] tweaked toml for git repo https://github.com/Quinn1876/advent-of-code written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Quinn1876/advent-of-code already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 17fb39125068982e8fe28f0764d692e53c625c5cfe07864c35eef5b9a64d2ae5 [INFO] running `Command { std: "docker" "start" "-a" "17fb39125068982e8fe28f0764d692e53c625c5cfe07864c35eef5b9a64d2ae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "17fb39125068982e8fe28f0764d692e53c625c5cfe07864c35eef5b9a64d2ae5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17fb39125068982e8fe28f0764d692e53c625c5cfe07864c35eef5b9a64d2ae5", kill_on_drop: false }` [INFO] [stdout] 17fb39125068982e8fe28f0764d692e53c625c5cfe07864c35eef5b9a64d2ae5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dbc3e7567a4213777a1714882d1145ad0488f9c0422c27320702f1a254ef16ff [INFO] running `Command { std: "docker" "start" "-a" "dbc3e7567a4213777a1714882d1145ad0488f9c0422c27320702f1a254ef16ff", kill_on_drop: false }` [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking regex v1.7.3 [INFO] [stderr] Checking advent-of-code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `parse_lines` [INFO] [stdout] --> src/q3.rs:81:29 [INFO] [stdout] | [INFO] [stdout] 81 | use super::{parse_line, parse_lines, get_priority, get_common_chars}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/q5.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Split`, `fmt::Error` [INFO] [stdout] --> src/q7.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{BufRead, Split}, fmt::Error, slice::Iter}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse_lines` [INFO] [stdout] --> src/q7.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::common::{parse_lines, self}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ops::DerefMut`, `rc::Rc` [INFO] [stdout] --> src/q9.rs:1:57 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::BufRead, collections::{HashSet, HashMap}, rc::Rc, ops::DerefMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WorryLevel` [INFO] [stdout] --> src/q11.rs:218:46 [INFO] [stdout] | [INFO] [stdout] 218 | use crate::q11::{parse_input_to_monkeys, WorryLevel}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::parse_lines` [INFO] [stdout] --> src/common.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | use crate::common::parse_lines; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::parse_input` [INFO] [stdout] --> src/q1.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | use super::parse_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Action`, `Round` [INFO] [stdout] --> src/q2.rs:183:21 [INFO] [stdout] | [INFO] [stdout] 183 | use crate::q2::{Round, Action}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::parse_input` [INFO] [stdout] --> src/q2.rs:185:9 [INFO] [stdout] | [INFO] [stdout] 185 | use super::parse_input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_common_chars`, `get_priority`, `parse_line`, `parse_lines` [INFO] [stdout] --> src/q3.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | use super::{parse_line, parse_lines, get_priority, get_common_chars}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Region`, `contains`, `parse_line` [INFO] [stdout] --> src/q4.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | use super::{Region, contains, parse_line}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/q5.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::parse_boxes` [INFO] [stdout] --> src/q5.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | use super::parse_boxes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buffer`, `process_data_stream` [INFO] [stdout] --> src/q6.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | use super::{Buffer, process_data_stream}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Split`, `fmt::Error` [INFO] [stdout] --> src/q7.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{BufRead, Split}, fmt::Error, slice::Iter}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `parse_lines` [INFO] [stdout] --> src/q7.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::common::{parse_lines, self}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::q7::File` [INFO] [stdout] --> src/q7.rs:191:9 [INFO] [stdout] | [INFO] [stdout] 191 | use crate::q7::File; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Directory`, `FileSystem`, `Token`, `into_token_stream` [INFO] [stdout] --> src/q7.rs:193:17 [INFO] [stdout] | [INFO] [stdout] 193 | use super::{Token, into_token_stream, FileSystem, Directory}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `iter::zip`, `vec` [INFO] [stdout] --> src/q7.rs:194:15 [INFO] [stdout] | [INFO] [stdout] 194 | use std::{iter::zip, vec}; [INFO] [stdout] | ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `get_most_scenic_tree`, `get_scenic_score`, `parse_puzzle_input_to_tree_grid` [INFO] [stdout] --> src/q8.rs:169:21 [INFO] [stdout] | [INFO] [stdout] 169 | use crate::q8::{parse_puzzle_input_to_tree_grid, get_most_scenic_tree, get_scenic_score}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::get_visible_trees` [INFO] [stdout] --> src/q8.rs:171:9 [INFO] [stdout] | [INFO] [stdout] 171 | use super::get_visible_trees; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ops::DerefMut`, `rc::Rc` [INFO] [stdout] --> src/q9.rs:1:57 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::BufRead, collections::{HashSet, HashMap}, rc::Rc, ops::DerefMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::parse_lines` [INFO] [stdout] --> src/q9.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | use crate::common::parse_lines; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Direction`, `Grid` [INFO] [stdout] --> src/q9.rs:307:17 [INFO] [stdout] | [INFO] [stdout] 307 | use super::{Direction, Grid}; [INFO] [stdout] | ^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::common::parse_lines` [INFO] [stdout] --> src/q10.rs:142:9 [INFO] [stdout] | [INFO] [stdout] 142 | use crate::common::parse_lines; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CpuEmulator`, `Instruction` [INFO] [stdout] --> src/q10.rs:144:17 [INFO] [stdout] | [INFO] [stdout] 144 | use super::{Instruction, CpuEmulator}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WorryLevel`, `parse_input_to_monkeys` [INFO] [stdout] --> src/q11.rs:218:22 [INFO] [stdout] | [INFO] [stdout] 218 | use crate::q11::{parse_input_to_monkeys, WorryLevel}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MonkeyManager`, `Monkey` [INFO] [stdout] --> src/q11.rs:220:17 [INFO] [stdout] | [INFO] [stdout] 220 | use super::{Monkey, MonkeyManager}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/q7.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{BufRead, Split}, fmt::Error, slice::Iter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::BufRead` [INFO] [stdout] --> src/q9.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::BufRead, collections::{HashSet, HashMap}, rc::Rc, ops::DerefMut}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/q7.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{BufRead, Split}, fmt::Error, slice::Iter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::BufRead` [INFO] [stdout] --> src/q9.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::BufRead, collections::{HashSet, HashMap}, rc::Rc, ops::DerefMut}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASCII_z` is never used [INFO] [stdout] --> src/q3.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ASCII_z: u64 = 172; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PrintOut` is never used [INFO] [stdout] --> src/q8.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait PrintOut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_crt_data` is never used [INFO] [stdout] --> src/q10.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl CpuEmulator { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn print_crt_data(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASCII_a` should have an upper case name [INFO] [stdout] --> src/q3.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const ASCII_a: u64 = 97; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ASCII_A` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASCII_z` should have an upper case name [INFO] [stdout] --> src/q3.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ASCII_z: u64 = 172; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case (notice the capitalization): `ASCII_Z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASCII_z` is never used [INFO] [stdout] --> src/q3.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ASCII_z: u64 = 172; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_vec` is never used [INFO] [stdout] --> src/q6.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Buffer { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub unsafe fn get_vec(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `PrintOut` is never used [INFO] [stdout] --> src/q8.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait PrintOut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_grid` is never used [INFO] [stdout] --> src/q9.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 171 | impl Grid { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 172 | pub fn print_grid(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_crt_data` is never used [INFO] [stdout] --> src/q10.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl CpuEmulator { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn print_crt_data(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `print_monkeys` and `print_inspections` are never used [INFO] [stdout] --> src/q11.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 174 | impl MonkeyManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn print_monkeys(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn print_inspections(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASCII_a` should have an upper case name [INFO] [stdout] --> src/q3.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const ASCII_a: u64 = 97; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ASCII_A` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASCII_z` should have an upper case name [INFO] [stdout] --> src/q3.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ASCII_z: u64 = 172; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case (notice the capitalization): `ASCII_Z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.95s [INFO] running `Command { std: "docker" "inspect" "dbc3e7567a4213777a1714882d1145ad0488f9c0422c27320702f1a254ef16ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dbc3e7567a4213777a1714882d1145ad0488f9c0422c27320702f1a254ef16ff", kill_on_drop: false }` [INFO] [stdout] dbc3e7567a4213777a1714882d1145ad0488f9c0422c27320702f1a254ef16ff [INFO] checking Quinn1876/advent-of-code against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FQuinn1876%2Fadvent-of-code" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Quinn1876/advent-of-code on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Quinn1876/advent-of-code [INFO] finished tweaking git repo https://github.com/Quinn1876/advent-of-code [INFO] tweaked toml for git repo https://github.com/Quinn1876/advent-of-code written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Quinn1876/advent-of-code already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2cfb98ed60af14b6c738ff00bb0e10ff8aca2c741ea59dba7a3de033cb6c4ae8 [INFO] running `Command { std: "docker" "start" "-a" "2cfb98ed60af14b6c738ff00bb0e10ff8aca2c741ea59dba7a3de033cb6c4ae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2cfb98ed60af14b6c738ff00bb0e10ff8aca2c741ea59dba7a3de033cb6c4ae8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cfb98ed60af14b6c738ff00bb0e10ff8aca2c741ea59dba7a3de033cb6c4ae8", kill_on_drop: false }` [INFO] [stdout] 2cfb98ed60af14b6c738ff00bb0e10ff8aca2c741ea59dba7a3de033cb6c4ae8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b608e96b9c22f4c37556cc56f1bf8e1dc925fcaf58194ad45a2970d53abe75b [INFO] running `Command { std: "docker" "start" "-a" "4b608e96b9c22f4c37556cc56f1bf8e1dc925fcaf58194ad45a2970d53abe75b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking regex v1.7.3 [INFO] [stderr] Checking advent-of-code v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/q1.rs (1 fix) [INFO] [stderr] Fixed src/q11.rs (2 fixes) [INFO] [stderr] Fixed src/q4.rs (1 fix) [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/q7.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{BufRead}, slice::Iter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/q5.rs (2 fixes) [INFO] [stdout] warning: unused import: `io::BufRead` [INFO] [stdout] --> src/q9.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::BufRead, collections::{HashSet, HashMap}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/common.rs (1 fix) [INFO] [stdout] warning: constant `ASCII_z` is never used [INFO] [stdout] --> src/q3.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ASCII_z: u64 = 172; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/q10.rs (2 fixes) [INFO] [stdout] warning: method `get_vec` is never used [INFO] [stdout] --> src/q6.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 21 | impl Buffer { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 44 | pub unsafe fn get_vec(&mut self) -> &mut Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/q9.rs (3 fixes) [INFO] [stdout] warning: trait `PrintOut` is never used [INFO] [stdout] --> src/q8.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait PrintOut { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/q2.rs (2 fixes) [INFO] [stdout] warning: method `print_grid` is never used [INFO] [stdout] --> src/q9.rs:172:12 [INFO] [stdout] | [INFO] [stdout] 171 | impl Grid { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 172 | pub fn print_grid(&self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/q7.rs (5 fixes) [INFO] [stdout] warning: method `print_crt_data` is never used [INFO] [stdout] --> src/q10.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl CpuEmulator { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn print_crt_data(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/q8.rs (2 fixes) [INFO] [stdout] warning: methods `print_monkeys` and `print_inspections` are never used [INFO] [stdout] --> src/q11.rs:188:12 [INFO] [stdout] | [INFO] [stdout] 174 | impl MonkeyManager { [INFO] [stdout] | ------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 188 | pub fn print_monkeys(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 194 | pub fn print_inspections(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/q3.rs (1 fix) [INFO] [stdout] warning: constant `ASCII_a` should have an upper case name [INFO] [stdout] --> src/q3.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const ASCII_a: u64 = 97; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case: `ASCII_A` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/q6.rs (1 fix) [INFO] [stdout] warning: constant `ASCII_z` should have an upper case name [INFO] [stdout] --> src/q3.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const ASCII_z: u64 = 172; [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper case (notice the capitalization): `ASCII_Z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stdout] error[E0425]: cannot find function `parse_lines` in this scope [INFO] [stdout] --> src/common.rs:48:20 [INFO] [stdout] | [INFO] [stdout] 48 | assert_eq!(parse_lines(input), expected_output); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 29 + use crate::common::parse_lines; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_input` in this scope [INFO] [stdout] --> src/q1.rs:50:20 [INFO] [stdout] | [INFO] [stdout] 50 | assert_eq!(parse_input(input_1), expected_output_1); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 42 + use crate::q1::parse_input; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_input` in this scope [INFO] [stdout] --> src/q1.rs:64:20 [INFO] [stdout] | [INFO] [stdout] 64 | assert_eq!(parse_input(input_2), expected_output_2); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 42 + use crate::q1::parse_input; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Round` in this scope [INFO] [stdout] --> src/q2.rs:196:13 [INFO] [stdout] | [INFO] [stdout] 196 | Round { my_action: Action::Rock, op_action: Action::Rock }, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Round; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action` [INFO] [stdout] --> src/q2.rs:196:32 [INFO] [stdout] | [INFO] [stdout] 196 | Round { my_action: Action::Rock, op_action: Action::Rock }, [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 196 | Round { my_action: Option::Rock, op_action: Action::Rock }, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action` [INFO] [stdout] --> src/q2.rs:196:57 [INFO] [stdout] | [INFO] [stdout] 196 | Round { my_action: Action::Rock, op_action: Action::Rock }, [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 196 | Round { my_action: Action::Rock, op_action: Option::Rock }, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Round` in this scope [INFO] [stdout] --> src/q2.rs:197:13 [INFO] [stdout] | [INFO] [stdout] 197 | Round { my_action: Action::Paper, op_action: Action::Paper }, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Round; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action` [INFO] [stdout] --> src/q2.rs:197:32 [INFO] [stdout] | [INFO] [stdout] 197 | Round { my_action: Action::Paper, op_action: Action::Paper }, [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 197 | Round { my_action: Option::Paper, op_action: Action::Paper }, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action` [INFO] [stdout] --> src/q2.rs:197:58 [INFO] [stdout] | [INFO] [stdout] 197 | Round { my_action: Action::Paper, op_action: Action::Paper }, [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 197 | Round { my_action: Action::Paper, op_action: Option::Paper }, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Round` in this scope [INFO] [stdout] --> src/q2.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 198 | Round { my_action: Action::Scissors, op_action: Action::Scissors }, [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Round; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action` [INFO] [stdout] --> src/q2.rs:198:32 [INFO] [stdout] | [INFO] [stdout] 198 | Round { my_action: Action::Scissors, op_action: Action::Scissors }, [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 198 | Round { my_action: Option::Scissors, op_action: Action::Scissors }, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Action` [INFO] [stdout] --> src/q2.rs:198:61 [INFO] [stdout] | [INFO] [stdout] 198 | Round { my_action: Action::Scissors, op_action: Action::Scissors }, [INFO] [stdout] | ^^^^^^ use of undeclared type `Action` [INFO] [stdout] | [INFO] [stdout] help: an enum with a similar name exists [INFO] [stdout] | [INFO] [stdout] 198 | Round { my_action: Action::Scissors, op_action: Option::Scissors }, [INFO] [stdout] | ~~~~~~ [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::Action; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_input` in this scope [INFO] [stdout] --> src/q2.rs:200:20 [INFO] [stdout] | [INFO] [stdout] 200 | assert_eq!(parse_input(input), output); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 187 + use crate::q2::parse_input; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_line` in this scope [INFO] [stdout] --> src/q3.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | let (first, second) = parse_line(input); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 83 + use crate::q3::parse_line; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_priority` in this scope [INFO] [stdout] --> src/q3.rs:98:13 [INFO] [stdout] | [INFO] [stdout] 98 | get_priority(c) [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 83 + use crate::q3::get_priority; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_common_chars` in this scope [INFO] [stdout] --> src/q3.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(*get_common_chars(first, second).first().unwrap(), expected_output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 83 + use crate::q3::get_common_chars; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Region` in this scope [INFO] [stdout] --> src/q4.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | let r1 = Region { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::Region; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Region` in this scope [INFO] [stdout] --> src/q4.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | let r2 = Region { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::Region; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Region` in this scope [INFO] [stdout] --> src/q4.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let r3 = Region { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::Region; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `contains` in this scope [INFO] [stdout] --> src/q4.rs:81:17 [INFO] [stdout] | [INFO] [stdout] 81 | assert!(contains(&r1, &r2)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::contains; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `contains` in this scope [INFO] [stdout] --> src/q4.rs:82:18 [INFO] [stdout] | [INFO] [stdout] 82 | assert!(!contains(&r1, &r3)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::contains; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `contains` in this scope [INFO] [stdout] --> src/q4.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | assert!(contains(&r3, &r2)); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::contains; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Region` in this scope [INFO] [stdout] --> src/q4.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | Region { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::Region; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Region` in this scope [INFO] [stdout] --> src/q4.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | Region { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::Region; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_line` in this scope [INFO] [stdout] --> src/q4.rs:99:20 [INFO] [stdout] | [INFO] [stdout] 99 | assert_eq!(parse_line(input), expected_output); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 66 + use crate::q4::parse_line; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_boxes` in this scope [INFO] [stdout] --> src/q5.rs:124:20 [INFO] [stdout] | [INFO] [stdout] 124 | assert_eq!(parse_boxes(input.split('\n').collect()), expected_output); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 110 + use crate::q5::parse_boxes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Buffer` [INFO] [stdout] --> src/q6.rs:71:26 [INFO] [stdout] | [INFO] [stdout] 71 | let mut buffer = Buffer::new(4); [INFO] [stdout] | ^^^^^^ use of undeclared type `Buffer` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 69 + use crate::q6::Buffer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `process_data_stream` in this scope [INFO] [stdout] --> src/q6.rs:109:20 [INFO] [stdout] | [INFO] [stdout] 109 | assert_eq!(process_data_stream(input_1, 4), expected_output_1); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 69 + use crate::q6::process_data_stream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `process_data_stream` in this scope [INFO] [stdout] --> src/q6.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | assert_eq!(process_data_stream(input_2, 4), expected_output_2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 69 + use crate::q6::process_data_stream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `process_data_stream` in this scope [INFO] [stdout] --> src/q6.rs:111:20 [INFO] [stdout] | [INFO] [stdout] 111 | assert_eq!(process_data_stream(input_3, 4), expected_output_3); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 69 + use crate::q6::process_data_stream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `process_data_stream` in this scope [INFO] [stdout] --> src/q6.rs:112:20 [INFO] [stdout] | [INFO] [stdout] 112 | assert_eq!(process_data_stream(input_4, 4), expected_output_4); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 69 + use crate::q6::process_data_stream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:208:13 [INFO] [stdout] | [INFO] [stdout] 208 | Token::DirectoryName("/".as_bytes().to_vec()), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:209:13 [INFO] [stdout] | [INFO] [stdout] 209 | Token::ListDirectoryLine(vec!["dir".as_bytes().to_vec(), "a".as_bytes().to_vec()]), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:210:13 [INFO] [stdout] | [INFO] [stdout] 210 | Token::ListDirectoryLine(vec!["14848514".as_bytes().to_vec(), "b.txt".as_bytes().to_vec()]), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | Token::ListDirectoryLine(vec!["8504156".as_bytes().to_vec(), "c.dat".as_bytes().to_vec()]), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:212:13 [INFO] [stdout] | [INFO] [stdout] 212 | Token::ListDirectoryLine(vec!["dir".as_bytes().to_vec(), "d".as_bytes().to_vec()]), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `into_token_stream` in this scope [INFO] [stdout] --> src/q7.rs:215:22 [INFO] [stdout] | [INFO] [stdout] 215 | let output = into_token_stream(&input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::into_token_stream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `zip` in this scope [INFO] [stdout] --> src/q7.rs:218:20 [INFO] [stdout] | [INFO] [stdout] 218 | for cmp in zip(output, expected_output) { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use core::iter::zip; [INFO] [stdout] | [INFO] [stdout] 196 + use std::iter::zip; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | Token::DirectoryName("/".as_bytes().to_vec()), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:228:13 [INFO] [stdout] | [INFO] [stdout] 228 | Token::ListDirectoryLine(vec!["dir".as_bytes().to_vec(), "a".as_bytes().to_vec()]), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:229:13 [INFO] [stdout] | [INFO] [stdout] 229 | Token::ListDirectoryLine(vec!["14848514".as_bytes().to_vec(), "b.txt".as_bytes().to_vec()]), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:230:13 [INFO] [stdout] | [INFO] [stdout] 230 | Token::ListDirectoryLine(vec!["8504156".as_bytes().to_vec(), "c.dat".as_bytes().to_vec()]), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Token` [INFO] [stdout] --> src/q7.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | Token::ListDirectoryLine(vec!["dir".as_bytes().to_vec(), "d".as_bytes().to_vec()]), [INFO] [stdout] | ^^^^^ use of undeclared type `Token` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Token; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FileSystem` in this scope [INFO] [stdout] --> src/q7.rs:234:31 [INFO] [stdout] | [INFO] [stdout] 234 | let expected_output = FileSystem { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::FileSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Directory` in this scope [INFO] [stdout] --> src/q7.rs:235:29 [INFO] [stdout] | [INFO] [stdout] 235 | root_directory: Directory { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Directory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:238:21 [INFO] [stdout] | [INFO] [stdout] 238 | File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:241:21 [INFO] [stdout] | [INFO] [stdout] 241 | File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Directory` [INFO] [stdout] --> src/q7.rs:246:21 [INFO] [stdout] | [INFO] [stdout] 246 | Directory::with_name(vec![b'a']), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Directory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Directory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Directory` [INFO] [stdout] --> src/q7.rs:247:21 [INFO] [stdout] | [INFO] [stdout] 247 | Directory::with_name(vec![b'd']), [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Directory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Directory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileSystem` [INFO] [stdout] --> src/q7.rs:253:18 [INFO] [stdout] | [INFO] [stdout] 253 | let fs = FileSystem::parse_tokens(&input_token_stream); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FileSystem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::FileSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `into_token_stream` in this scope [INFO] [stdout] --> src/q7.rs:286:22 [INFO] [stdout] | [INFO] [stdout] 197 | fn test_into_token_stream() { [INFO] [stdout] | --------------------------- similarly named function `test_into_token_stream` defined here [INFO] [stdout] ... [INFO] [stdout] 286 | let tokens = into_token_stream(&input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 286 | let tokens = test_into_token_stream(&input); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::into_token_stream; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FileSystem` [INFO] [stdout] --> src/q7.rs:288:18 [INFO] [stdout] | [INFO] [stdout] 288 | let fs = FileSystem::parse_tokens(&tokens); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FileSystem` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::FileSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `FileSystem` in this scope [INFO] [stdout] --> src/q7.rs:290:27 [INFO] [stdout] | [INFO] [stdout] 290 | let expected_fs = FileSystem { [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::FileSystem; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Directory` in this scope [INFO] [stdout] --> src/q7.rs:291:29 [INFO] [stdout] | [INFO] [stdout] 291 | root_directory: Directory { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Directory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Directory` in this scope [INFO] [stdout] --> src/q7.rs:294:21 [INFO] [stdout] | [INFO] [stdout] 294 | Directory { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Directory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Directory` in this scope [INFO] [stdout] --> src/q7.rs:297:29 [INFO] [stdout] | [INFO] [stdout] 297 | ... Directory { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Directory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:301:37 [INFO] [stdout] | [INFO] [stdout] 301 | ... File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:309:29 [INFO] [stdout] | [INFO] [stdout] 309 | ... File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:312:29 [INFO] [stdout] | [INFO] [stdout] 312 | ... File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:315:29 [INFO] [stdout] | [INFO] [stdout] 315 | ... File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Directory` in this scope [INFO] [stdout] --> src/q7.rs:321:21 [INFO] [stdout] | [INFO] [stdout] 321 | Directory { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::Directory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:325:29 [INFO] [stdout] | [INFO] [stdout] 325 | ... File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:328:29 [INFO] [stdout] | [INFO] [stdout] 328 | ... File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:331:29 [INFO] [stdout] | [INFO] [stdout] 331 | ... File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-of-code` (lib test) due to 89 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:334:29 [INFO] [stdout] | [INFO] [stdout] 334 | ... File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:342:21 [INFO] [stdout] | [INFO] [stdout] 342 | File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `File` in this scope [INFO] [stdout] --> src/q7.rs:345:21 [INFO] [stdout] | [INFO] [stdout] 345 | File { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 196 + use crate::q7::File; [INFO] [stdout] | [INFO] [stdout] 196 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_puzzle_input_to_tree_grid` in this scope [INFO] [stdout] --> src/q8.rs:188:22 [INFO] [stdout] | [INFO] [stdout] 188 | let output = parse_puzzle_input_to_tree_grid(input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use crate::q8::parse_puzzle_input_to_tree_grid; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_visible_trees` in this scope [INFO] [stdout] --> src/q8.rs:204:22 [INFO] [stdout] | [INFO] [stdout] 204 | let output = get_visible_trees(&input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use crate::q8::get_visible_trees; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_most_scenic_tree` in this scope [INFO] [stdout] --> src/q8.rs:220:22 [INFO] [stdout] | [INFO] [stdout] 220 | let output = get_most_scenic_tree(&input); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use crate::q8::get_most_scenic_tree; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_scenic_score` in this scope [INFO] [stdout] --> src/q8.rs:234:23 [INFO] [stdout] | [INFO] [stdout] 234 | assert_eq!(8, get_scenic_score(&input, 3, 2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use crate::q8::get_scenic_score; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_scenic_score` in this scope [INFO] [stdout] --> src/q8.rs:235:23 [INFO] [stdout] | [INFO] [stdout] 235 | assert_eq!(4, get_scenic_score(&input, 1, 2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 173 + use crate::q8::get_scenic_score; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_lines` in this scope [INFO] [stdout] --> src/q9.rs:311:26 [INFO] [stdout] | [INFO] [stdout] 311 | let directions = parse_lines("R 4 [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::parse_lines; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Direction` [INFO] [stdout] --> src/q9.rs:320:17 [INFO] [stdout] | [INFO] [stdout] 320 | .map(|line| Direction::from(line)) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Direction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::Direction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Direction` in this scope [INFO] [stdout] --> src/q9.rs:321:20 [INFO] [stdout] | [INFO] [stdout] 321 | .collect::>(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::Direction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Grid` [INFO] [stdout] --> src/q9.rs:323:24 [INFO] [stdout] | [INFO] [stdout] 323 | let mut grid = Grid::default(); [INFO] [stdout] | ^^^^ use of undeclared type `Grid` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::Grid; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Grid` [INFO] [stdout] --> src/q9.rs:329:24 [INFO] [stdout] | [INFO] [stdout] 329 | let mut grid = Grid::with_n_knots(10); [INFO] [stdout] | ^^^^ use of undeclared type `Grid` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::Grid; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_lines` in this scope [INFO] [stdout] --> src/q9.rs:341:26 [INFO] [stdout] | [INFO] [stdout] 341 | let directions = parse_lines("R 5 [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::parse_lines; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Direction` [INFO] [stdout] --> src/q9.rs:350:17 [INFO] [stdout] | [INFO] [stdout] 350 | .map(|line| Direction::from(line)) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Direction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::Direction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Direction` in this scope [INFO] [stdout] --> src/q9.rs:351:20 [INFO] [stdout] | [INFO] [stdout] 351 | .collect::>(); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::Direction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Grid` [INFO] [stdout] --> src/q9.rs:352:24 [INFO] [stdout] | [INFO] [stdout] 352 | let mut grid = Grid::with_n_knots(10); [INFO] [stdout] | ^^^^ use of undeclared type `Grid` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 309 + use crate::q9::Grid; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Instruction` in this scope [INFO] [stdout] --> src/q10.rs:294:24 [INFO] [stdout] | [INFO] [stdout] 294 | let input: Vec = parse_lines(input) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 146 + use crate::q10::Instruction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_lines` in this scope [INFO] [stdout] --> src/q10.rs:294:39 [INFO] [stdout] | [INFO] [stdout] 294 | let input: Vec = parse_lines(input) [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function through its public re-export [INFO] [stdout] | [INFO] [stdout] 146 + use crate::q10::parse_lines; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instruction` [INFO] [stdout] --> src/q10.rs:296:25 [INFO] [stdout] | [INFO] [stdout] 296 | .map(|line| Instruction::from(line)) [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Instruction` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 146 + use crate::q10::Instruction; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CpuEmulator` [INFO] [stdout] --> src/q10.rs:299:28 [INFO] [stdout] | [INFO] [stdout] 299 | let mut emulator = CpuEmulator::default(); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `CpuEmulator` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 146 + use crate::q10::CpuEmulator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Monkey` in this scope [INFO] [stdout] --> src/q11.rs:231:31 [INFO] [stdout] | [INFO] [stdout] 231 | let expected_output = Monkey { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 222 + use crate::q11::Monkey; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `parse_input_to_monkeys` in this scope [INFO] [stdout] --> src/q11.rs:241:37 [INFO] [stdout] | [INFO] [stdout] 241 | assert_eq!(expected_output, parse_input_to_monkeys(input)[0]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 222 + use crate::q11::parse_input_to_monkeys; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MonkeyManager` [INFO] [stdout] --> src/q11.rs:275:18 [INFO] [stdout] | [INFO] [stdout] 275 | let mut mm = MonkeyManager::from(input); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `MonkeyManager` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 222 + use crate::q11::MonkeyManager; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/q7.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{BufRead}, slice::Iter}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `io::BufRead` [INFO] [stdout] --> src/q9.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::BufRead, collections::{HashSet, HashMap}}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 88 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [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" "4b608e96b9c22f4c37556cc56f1bf8e1dc925fcaf58194ad45a2970d53abe75b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b608e96b9c22f4c37556cc56f1bf8e1dc925fcaf58194ad45a2970d53abe75b", kill_on_drop: false }` [INFO] [stdout] 4b608e96b9c22f4c37556cc56f1bf8e1dc925fcaf58194ad45a2970d53abe75b