[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] checking hderms/advent-of-code-2022 against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhderms%2Fadvent-of-code-2022" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hderms/advent-of-code-2022 on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-3-tc1/source/Cargo.toml [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" "+506512391b1a75ae450d36c9420978402a91abcc" "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-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a399fc2d974fd3d6a082bef3f6b556c4002b084a11a221609c9d6a61892f2ba [INFO] running `Command { std: "docker" "start" "-a" "5a399fc2d974fd3d6a082bef3f6b556c4002b084a11a221609c9d6a61892f2ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a399fc2d974fd3d6a082bef3f6b556c4002b084a11a221609c9d6a61892f2ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a399fc2d974fd3d6a082bef3f6b556c4002b084a11a221609c9d6a61892f2ba", kill_on_drop: false }` [INFO] [stdout] 5a399fc2d974fd3d6a082bef3f6b556c4002b084a11a221609c9d6a61892f2ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8d19893bdc937c7ed566d7c48c8a60aed970ad0e32eadc8d28a99a05dcc6f82 [INFO] running `Command { std: "docker" "start" "-a" "e8d19893bdc937c7ed566d7c48c8a60aed970ad0e32eadc8d28a99a05dcc6f82", 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 memchr v2.5.0 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Compiling anyhow v1.0.66 [INFO] [stderr] Checking eight v0.1.0 (/opt/rustwide/workdir/eight) [INFO] [stderr] Checking three v0.1.0 (/opt/rustwide/workdir/three) [INFO] [stderr] Checking six v0.1.0 (/opt/rustwide/workdir/six) [INFO] [stderr] Checking one v0.1.0 (/opt/rustwide/workdir/one) [INFO] [stderr] Compiling slab v0.4.7 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking four v0.1.0 (/opt/rustwide/workdir/four) [INFO] [stderr] Checking seven v0.1.0 (/opt/rustwide/workdir/seven) [INFO] [stderr] Checking two v0.1.0 (/opt/rustwide/workdir/two) [INFO] [stderr] Checking five v0.1.0 (/opt/rustwide/workdir/five) [INFO] [stderr] Checking nine v0.1.0 (/opt/rustwide/workdir/nine) [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, .. } => {} [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[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, .. } => {} [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] 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] 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] error: aborting due to 4 previous errors [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 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] error: aborting due to 4 previous errors [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" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "e8d19893bdc937c7ed566d7c48c8a60aed970ad0e32eadc8d28a99a05dcc6f82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8d19893bdc937c7ed566d7c48c8a60aed970ad0e32eadc8d28a99a05dcc6f82", kill_on_drop: false }` [INFO] [stdout] e8d19893bdc937c7ed566d7c48c8a60aed970ad0e32eadc8d28a99a05dcc6f82