[INFO] cloning repository https://github.com/MostlyAmiable/advent2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MostlyAmiable/advent2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMostlyAmiable%2Fadvent2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMostlyAmiable%2Fadvent2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70bb777498ec7ceb4e8bdb68cba1997bb86f6a76 [INFO] checking MostlyAmiable/advent2022/70bb777498ec7ceb4e8bdb68cba1997bb86f6a76 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMostlyAmiable%2Fadvent2022" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MostlyAmiable/advent2022 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/MostlyAmiable/advent2022 [INFO] finished tweaking git repo https://github.com/MostlyAmiable/advent2022 [INFO] tweaked toml for git repo https://github.com/MostlyAmiable/advent2022 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--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] [stderr] Updating crates.io index [INFO] [stderr] Locking 12 packages to latest compatible versions [INFO] [stderr] Adding ndarray v0.15.6 (available: v0.16.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c01ac67c5d1eef956db4cb2add97b19544d3bcda23265eb221446f777b2a7576 [INFO] running `Command { std: "docker" "start" "-a" "c01ac67c5d1eef956db4cb2add97b19544d3bcda23265eb221446f777b2a7576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c01ac67c5d1eef956db4cb2add97b19544d3bcda23265eb221446f777b2a7576", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c01ac67c5d1eef956db4cb2add97b19544d3bcda23265eb221446f777b2a7576", kill_on_drop: false }` [INFO] [stdout] c01ac67c5d1eef956db4cb2add97b19544d3bcda23265eb221446f777b2a7576 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4eacb3cc241e4653c063dd4bebcab9abc094353771b0f1800dd297c67327acae [INFO] running `Command { std: "docker" "start" "-a" "4eacb3cc241e4653c063dd4bebcab9abc094353771b0f1800dd297c67327acae", 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 autocfg v1.4.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking advent2023 v0.1.0 (/opt/rustwide/workdir/2023) [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking advent2022 v0.1.0 (/opt/rustwide/workdir/2022) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> 2022/src/bin/day7/main.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | files: HashMap::new(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `File` in this scope [INFO] [stdout] --> 2022/src/bin/day7/main.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | files: Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> 2022/src/bin/day7/main.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | files: HashMap::new(), [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `File` in this scope [INFO] [stdout] --> 2022/src/bin/day7/main.rs:85:16 [INFO] [stdout] | [INFO] [stdout] 85 | files: Vec, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 4 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_group_by` has been stable since 1.77.0 and no longer requires an attribute to enable [INFO] [stdout] --> 2022/src/bin/day7/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(slice_group_by)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `slice_group_by` has been stable since 1.77.0 and no longer requires an attribute to enable [INFO] [stdout] --> 2022/src/bin/day7/main.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(slice_group_by)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | Cd(Path), [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: no field of an enum variant may have a dynamically sized type [INFO] [stdout] = help: change the field's type to have a statically known size [INFO] [stdout] help: borrowed types always have a statically known size [INFO] [stdout] | [INFO] [stdout] 75 | Cd(&Path), [INFO] [stdout] | + [INFO] [stdout] help: the `Box` type always has a statically known size and allocates its contents in the heap [INFO] [stdout] | [INFO] [stdout] 75 | Cd(Box), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | Cd(Path), [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: no field of an enum variant may have a dynamically sized type [INFO] [stdout] = help: change the field's type to have a statically known size [INFO] [stdout] help: borrowed types always have a statically known size [INFO] [stdout] | [INFO] [stdout] 75 | Cd(&Path), [INFO] [stdout] | + [INFO] [stdout] help: the `Box` type always has a statically known size and allocates its contents in the heap [INFO] [stdout] | [INFO] [stdout] 75 | Cd(Box), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | Dir(Path), [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: no field of an enum variant may have a dynamically sized type [INFO] [stdout] = help: change the field's type to have a statically known size [INFO] [stdout] help: borrowed types always have a statically known size [INFO] [stdout] | [INFO] [stdout] 79 | Dir(&Path), [INFO] [stdout] | + [INFO] [stdout] help: the `Box` type always has a statically known size and allocates its contents in the heap [INFO] [stdout] | [INFO] [stdout] 79 | Dir(Box), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | Dir(Path), [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: no field of an enum variant may have a dynamically sized type [INFO] [stdout] = help: change the field's type to have a statically known size [INFO] [stdout] help: borrowed types always have a statically known size [INFO] [stdout] | [INFO] [stdout] 79 | Dir(&Path), [INFO] [stdout] | + [INFO] [stdout] help: the `Box` type always has a statically known size and allocates its contents in the heap [INFO] [stdout] | [INFO] [stdout] 79 | Dir(Box), [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `group_by` found for struct `Vec<&str>` in the current scope [INFO] [stdout] --> 2022/src/bin/day7/main.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | let mut cmds = input.group_by(|a, b| !b.starts_with('$')).map(parse_input); [INFO] [stdout] | ^^^^^^^^ method not found in `Vec<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | Cmd::Cd(path) => { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Path` with `&Path` [INFO] [stdout] --> 2022/src/bin/day7/main.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | if path == Path::new("..") { [INFO] [stdout] | ^^ no implementation for `Path == &Path` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&Path>` is not implemented for `Path` [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 42 | if path == *Path::new("..") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | if let DirEntry::File(size, path) = entry { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `group_by` found for struct `Vec<&str>` in the current scope [INFO] [stdout] --> 2022/src/bin/day7/main.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | let mut cmds = input.group_by(|a, b| !b.starts_with('$')).map(parse_input); [INFO] [stdout] | ^^^^^^^^ method not found in `Vec<&str>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: AsRef` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:51:57 [INFO] [stdout] | [INFO] [stdout] 51 | self.files.insert(self.cwd.join(path), size); [INFO] [stdout] | ---- ^^^^ the trait `AsRef` is not implemented for `usize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Path::join` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2662:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 41 | Cmd::Cd(path) => { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `Path` with `&Path` [INFO] [stdout] --> 2022/src/bin/day7/main.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | if path == Path::new("..") { [INFO] [stdout] | ^^ no implementation for `Path == &Path` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq<&Path>` is not implemented for `Path` [INFO] [stdout] help: consider dereferencing here [INFO] [stdout] | [INFO] [stdout] 42 | if path == *Path::new("..") { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:50:43 [INFO] [stdout] | [INFO] [stdout] 50 | if let DirEntry::File(size, path) = entry { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `usize: AsRef` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:51:57 [INFO] [stdout] | [INFO] [stdout] 51 | self.files.insert(self.cwd.join(path), size); [INFO] [stdout] | ---- ^^^^ the trait `AsRef` is not implemented for `usize` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `Path::join` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2662:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 2022/src/bin/day7/main.rs:51:64 [INFO] [stdout] | [INFO] [stdout] 51 | self.files.insert(self.cwd.join(path), size); [INFO] [stdout] | ------ ^^^^ expected `usize`, found `Path` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `Path` due to the type of the argument passed [INFO] [stdout] --> 2022/src/bin/day7/main.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | self.files.insert(self.cwd.join(path), size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `insert` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 2022/src/bin/day7/main.rs:51:64 [INFO] [stdout] | [INFO] [stdout] 51 | self.files.insert(self.cwd.join(path), size); [INFO] [stdout] | ------ ^^^^ expected `usize`, found `Path` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `Path` due to the type of the argument passed [INFO] [stdout] --> 2022/src/bin/day7/main.rs:51:25 [INFO] [stdout] | [INFO] [stdout] 51 | self.files.insert(self.cwd.join(path), size); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `insert` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/collections/btree/map.rs:984:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: From<_>` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | let path = Path::from(args); [INFO] [stdout] | ^^^^ the trait `From<_>` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 93 | let path = &Path::from(args); [INFO] [stdout] | + [INFO] [stdout] 93 | let path = &mut Path::from(args); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: From<_>` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | let path = Path::from(args); [INFO] [stdout] | ^^^^ the trait `From<_>` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 93 | let path = &Path::from(args); [INFO] [stdout] | + [INFO] [stdout] 93 | let path = &mut Path::from(args); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | let path = Path::from(args); [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] note: required by a bound in `from` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:585:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let path = Path::from(args); [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | let path = Path::from(args); [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] note: required by a bound in `from` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:585:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:93:17 [INFO] [stdout] | [INFO] [stdout] 93 | let path = Path::from(args); [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: From<_>` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:101:42 [INFO] [stdout] | [INFO] [stdout] 101 | return DirEntry::Dir(Path::from(path)); [INFO] [stdout] | ^^^^ the trait `From<_>` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 101 | return DirEntry::Dir(&Path::from(path)); [INFO] [stdout] | + [INFO] [stdout] 101 | return DirEntry::Dir(&mut Path::from(path)); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: From<_>` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:101:42 [INFO] [stdout] | [INFO] [stdout] 101 | return DirEntry::Dir(Path::from(path)); [INFO] [stdout] | ^^^^ the trait `From<_>` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 101 | return DirEntry::Dir(&Path::from(path)); [INFO] [stdout] | + [INFO] [stdout] 101 | return DirEntry::Dir(&mut Path::from(path)); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:101:42 [INFO] [stdout] | [INFO] [stdout] 101 | return DirEntry::Dir(Path::from(path)); [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] note: required by a bound in `from` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:585:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:101:42 [INFO] [stdout] | [INFO] [stdout] 101 | return DirEntry::Dir(Path::from(path)); [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] note: required by a bound in `from` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/convert/mod.rs:585:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: From<_>` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:55 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | ^^^^ the trait `From<_>` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), &Path::from(path)) [INFO] [stdout] | + [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), &mut Path::from(path)) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: From<_>` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:55 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | ^^^^ the trait `From<_>` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), &Path::from(path)) [INFO] [stdout] | + [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), &mut Path::from(path)) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: FromStr` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | ^^^^^ the trait `FromStr` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `FromStr`: [INFO] [stdout] IpAddr [INFO] [stdout] Ipv4Addr [INFO] [stdout] Ipv6Addr [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] and 32 others [INFO] [stdout] note: required by a bound in `core::str::::parse` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/str/mod.rs:2397:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:45 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | ^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] note: required by a bound in `Result::::unwrap` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:1096:5 [INFO] [stdout] help: consider removing this method call, as the receiver has type `&str` and `&str: Sized` trivially holds [INFO] [stdout] | [INFO] [stdout] 103 - DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] 103 + DirEntry::File(size.unwrap(), Path::from(path)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] note: required by an implicit `Sized` bound in `core::str::::parse` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/str/mod.rs:2397:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:55 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^ expected `usize`, found `Path` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> 2022/src/bin/day7/main.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | File(Path, usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | let path = Path::from(args); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Path: FromStr` is not satisfied [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | ^^^^^ the trait `FromStr` is not implemented for `Path` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `FromStr`: [INFO] [stdout] IpAddr [INFO] [stdout] Ipv4Addr [INFO] [stdout] Ipv6Addr [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] NonZero [INFO] [stdout] and 32 others [INFO] [stdout] note: required by a bound in `core::str::::parse` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/str/mod.rs:2397:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:45 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | ^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] note: required by a bound in `Result::::unwrap` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/result.rs:1096:5 [INFO] [stdout] help: consider removing this method call, as the receiver has type `&str` and `&str: Sized` trivially holds [INFO] [stdout] | [INFO] [stdout] 103 - DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] 103 + DirEntry::File(size.unwrap(), Path::from(path)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:37 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | ^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] note: required by an implicit `Sized` bound in `core::str::::parse` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/str/mod.rs:2397:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> 2022/src/bin/day7/main.rs:103:55 [INFO] [stdout] | [INFO] [stdout] 103 | DirEntry::File(size.parse().unwrap(), Path::from(path)) [INFO] [stdout] | -------------- ^^^^^^^^^^^^^^^^ expected `usize`, found `Path` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> 2022/src/bin/day7/main.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | File(Path, usize), [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `[u8]` cannot be known at compilation time [INFO] [stdout] --> 2022/src/bin/day7/main.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | let path = Path::from(args); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: within `Path`, the trait `Sized` is not implemented for `[u8]`, which is required by `Path: Sized` [INFO] [stdout] note: required because it appears within the type `Path` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/std/src/path.rs:2105:12 [INFO] [stdout] = note: the return type of a function must have a statically known size [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent2022` (bin "day7") due to 22 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `advent2022` (bin "day7" test) due to 22 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "4eacb3cc241e4653c063dd4bebcab9abc094353771b0f1800dd297c67327acae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eacb3cc241e4653c063dd4bebcab9abc094353771b0f1800dd297c67327acae", kill_on_drop: false }` [INFO] [stdout] 4eacb3cc241e4653c063dd4bebcab9abc094353771b0f1800dd297c67327acae