[INFO] cloning repository https://github.com/hderms/advent-of-code-2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hderms/advent-of-code-2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhderms%2Fadvent-of-code-2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhderms%2Fadvent-of-code-2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 741e556b70ba7b852299b1e903825384a05cf711 [INFO] testing hderms/advent-of-code-2022 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhderms%2Fadvent-of-code-2022" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/hderms/advent-of-code-2022 [INFO] finished tweaking git repo https://github.com/hderms/advent-of-code-2022 [INFO] tweaked toml for git repo https://github.com/hderms/advent-of-code-2022 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/hderms/advent-of-code-2022 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/hderms/advent-of-code-2022 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c426db7033ffe39e506ddd38a6d7f6dd28139217b52db450ba4e137df0c092c2 [INFO] running `Command { std: "docker" "start" "-a" "c426db7033ffe39e506ddd38a6d7f6dd28139217b52db450ba4e137df0c092c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c426db7033ffe39e506ddd38a6d7f6dd28139217b52db450ba4e137df0c092c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c426db7033ffe39e506ddd38a6d7f6dd28139217b52db450ba4e137df0c092c2", kill_on_drop: false }` [INFO] [stdout] c426db7033ffe39e506ddd38a6d7f6dd28139217b52db450ba4e137df0c092c2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 93b83e3ad02026901a63720bb470f4a91cbea532e6b52462d7eaa9c5665fcd32 [INFO] running `Command { std: "docker" "start" "-a" "93b83e3ad02026901a63720bb470f4a91cbea532e6b52462d7eaa9c5665fcd32", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling anyhow v1.0.66 [INFO] [stderr] Compiling three v0.1.0 (/opt/rustwide/workdir/three) [INFO] [stderr] Compiling one v0.1.0 (/opt/rustwide/workdir/one) [INFO] [stderr] Compiling six v0.1.0 (/opt/rustwide/workdir/six) [INFO] [stderr] Compiling eight v0.1.0 (/opt/rustwide/workdir/eight) [INFO] [stdout] warning: unused import: `std::slice::Iter` [INFO] [stdout] --> eight/src/main.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::slice::Iter; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> eight/src/main.rs:85:24 [INFO] [stdout] | [INFO] [stdout] 85 | max_seen = (*entry as i64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 85 - max_seen = (*entry as i64); [INFO] [stdout] 85 + max_seen = *entry as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> eight/src/main.rs:94:24 [INFO] [stdout] | [INFO] [stdout] 94 | max_seen = (*entry as i64); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 94 - max_seen = (*entry as i64); [INFO] [stdout] 94 + max_seen = *entry as i64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufReader` [INFO] [stdout] --> six/src/main.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{BufReader, Read}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> three/src/main.rs:65:5 [INFO] [stdout] | [INFO] [stdout] 65 | one(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 65 | let _ = one(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> three/src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | two(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = two(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling five v0.1.0 (/opt/rustwide/workdir/five) [INFO] [stderr] Compiling two v0.1.0 (/opt/rustwide/workdir/two) [INFO] [stderr] Compiling nine v0.1.0 (/opt/rustwide/workdir/nine) [INFO] [stderr] Compiling four v0.1.0 (/opt/rustwide/workdir/four) [INFO] [stderr] Compiling seven v0.1.0 (/opt/rustwide/workdir/seven) [INFO] [stdout] warning: the feature `io_error_other` has been stable since 1.74.0 and no longer requires an attribute to enable [INFO] [stdout] --> nine/src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(io_error_other)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> five/src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut reader = BufReader::new(file); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> five/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | for i in 0..expected_number { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> five/src/main.rs:87:9 [INFO] [stdout] | [INFO] [stdout] 87 | for mut c in crates.iter_mut() { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> five/src/main.rs:134:13 [INFO] [stdout] | [INFO] [stdout] 134 | for i in 0..instruction.count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> five/src/main.rs:141:13 [INFO] [stdout] | [INFO] [stdout] 141 | for i in 0..instruction.count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `instruction_regex` should have an upper case name [INFO] [stdout] --> five/src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | static ref instruction_regex: Regex = Regex::new(INSTRUCTION_REGEX_STR).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 11 - static ref instruction_regex: Regex = Regex::new(INSTRUCTION_REGEX_STR).unwrap(); [INFO] [stdout] 11 + static ref INSTRUCTION_REGEX: Regex = Regex::new(INSTRUCTION_REGEX_STR).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0027]: pattern does not mention field `children` [INFO] [stdout] --> seven/src/main.rs:232:13 [INFO] [stdout] | [INFO] [stdout] 232 | Instruction::Ls { output } => {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ missing field `children` [INFO] [stdout] | [INFO] [stdout] help: include the missing field in the pattern [INFO] [stdout] | [INFO] [stdout] 232 | Instruction::Ls { output, children } => {} [INFO] [stdout] | ++++++++++ [INFO] [stdout] help: if you don't care about this missing field, you can explicitly ignore it [INFO] [stdout] | [INFO] [stdout] 232 | Instruction::Ls { output, children: _ } => {} [INFO] [stdout] | +++++++++++++ [INFO] [stdout] help: or always ignore missing fields here [INFO] [stdout] | [INFO] [stdout] 232 | Instruction::Ls { output, .. } => {} [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> seven/src/main.rs:227:34 [INFO] [stdout] | [INFO] [stdout] 227 | cursor.push(dir, last); [INFO] [stdout] | ---- ^^^^ expected `usize`, found `Option<&usize>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found enum `Option<&usize>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> seven/src/main.rs:185:8 [INFO] [stdout] | [INFO] [stdout] 185 | fn push(&mut self, entry: String, parent: usize) { [INFO] [stdout] | ^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> seven/src/main.rs:229:58 [INFO] [stdout] | [INFO] [stdout] 229 | filesystem.insert_dir(cursor.path(), cursor.parent.last()); [INFO] [stdout] | ---------- ^^^^^^^^^^^^^^^^^^^^ expected `Option`, found `Option<&usize>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Option<_>` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> seven/src/main.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | fn insert_dir(&mut self, path: Path, parent: Option) -> usize { [INFO] [stdout] | ^^^^^^^^^^ --------------------- [INFO] [stdout] help: use `Option::copied` to copy the value inside the `Option` [INFO] [stdout] | [INFO] [stdout] 229 | filesystem.insert_dir(cursor.path(), cursor.parent.last().copied()); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> seven/src/main.rs:195:13 [INFO] [stdout] | [INFO] [stdout] 195 | let mut path = self.stack.clone(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file_system` [INFO] [stdout] --> seven/src/main.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | let file_system: FileSystem = interpret_instructions(instructions); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_system` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `instructions` [INFO] [stdout] --> seven/src/main.rs:208:36 [INFO] [stdout] | [INFO] [stdout] 205 | let instructions = parse_instructions(lines)?; [INFO] [stdout] | ------------ move occurs because `instructions` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] 206 | let file_system: FileSystem = interpret_instructions(instructions); [INFO] [stdout] | ------------ value moved here [INFO] [stdout] 207 | [INFO] [stdout] 208 | println!("instructions: {:?}", instructions); [INFO] [stdout] | ^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: consider changing this parameter type in function `interpret_instructions` to borrow instead if owning the value isn't necessary [INFO] [stdout] --> seven/src/main.rs:212:41 [INFO] [stdout] | [INFO] [stdout] 212 | fn interpret_instructions(instructions: Vec) -> FileSystem { [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^^^ this parameter takes ownership of the value [INFO] [stdout] | | [INFO] [stdout] | in this function [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 206 | let file_system: FileSystem = interpret_instructions(instructions.clone()); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0027, E0308, E0382. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0027`. [INFO] [stdout] [INFO] [stderr] error: could not compile `seven` (bin "seven") due to 4 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "93b83e3ad02026901a63720bb470f4a91cbea532e6b52462d7eaa9c5665fcd32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93b83e3ad02026901a63720bb470f4a91cbea532e6b52462d7eaa9c5665fcd32", kill_on_drop: false }` [INFO] [stdout] 93b83e3ad02026901a63720bb470f4a91cbea532e6b52462d7eaa9c5665fcd32