[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/7136b954e50224270f9556f67836600b8db9cf82 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [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 ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0b058faaee67ba181fdb123e989def6dc600eab515e9de87381e38e7e6482979 [INFO] running `Command { std: "docker" "start" "-a" "0b058faaee67ba181fdb123e989def6dc600eab515e9de87381e38e7e6482979", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0b058faaee67ba181fdb123e989def6dc600eab515e9de87381e38e7e6482979", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b058faaee67ba181fdb123e989def6dc600eab515e9de87381e38e7e6482979", kill_on_drop: false }` [INFO] [stdout] 0b058faaee67ba181fdb123e989def6dc600eab515e9de87381e38e7e6482979 [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1537b3ceffa3a539c4181554c552a62149e27a969b6c082f8cfd1bc0dd82bc0b [INFO] running `Command { std: "docker" "start" "-a" "1537b3ceffa3a539c4181554c552a62149e27a969b6c082f8cfd1bc0dd82bc0b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling memchr v2.5.0 [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/q5.rs (2 fixes) [INFO] [stderr] Fixed src/q10.rs (2 fixes) [INFO] [stderr] Fixed src/q11.rs (2 fixes) [INFO] [stderr] Fixed src/q8.rs (2 fixes) [INFO] [stderr] Fixed src/q2.rs (2 fixes) [INFO] [stderr] Fixed src/q1.rs (1 fix) [INFO] [stderr] Fixed src/q9.rs (4 fixes) [INFO] [stderr] Fixed src/q4.rs (1 fix) [INFO] [stderr] Fixed src/q3.rs (1 fix) [INFO] [stderr] Fixed src/q7.rs (5 fixes) [INFO] [stderr] Fixed src/q6.rs (1 fix) [INFO] [stderr] Fixed src/common.rs (1 fix) [INFO] [stdout] warning: unused import: `io::BufRead` [INFO] [stdout] --> src/q7.rs:1:11 [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] 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: 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 this function [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 structs [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 structs [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 structs [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 structs [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 structs [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 structs [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 structs [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 structs [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 structs [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: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 structs [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 structs [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 structs [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] [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[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: `io::BufRead` [INFO] [stdout] --> src/q7.rs:1:11 [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" "1537b3ceffa3a539c4181554c552a62149e27a969b6c082f8cfd1bc0dd82bc0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1537b3ceffa3a539c4181554c552a62149e27a969b6c082f8cfd1bc0dd82bc0b", kill_on_drop: false }` [INFO] [stdout] 1537b3ceffa3a539c4181554c552a62149e27a969b6c082f8cfd1bc0dd82bc0b