[INFO] cloning repository https://github.com/cadillion/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/cadillion/advent-of-code" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcadillion%2Fadvent-of-code", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcadillion%2Fadvent-of-code'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 223a4baafcb1808bc97cfa98e179097634e2e0ce [INFO] checking cadillion/advent-of-code/223a4baafcb1808bc97cfa98e179097634e2e0ce against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcadillion%2Fadvent-of-code" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cadillion/advent-of-code 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] started tweaking git repo https://github.com/cadillion/advent-of-code [INFO] finished tweaking git repo https://github.com/cadillion/advent-of-code [INFO] tweaked toml for git repo https://github.com/cadillion/advent-of-code written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cadillion/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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-1-tc1/source/2022/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-1-tc1/source/2023/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-1-tc1/source/Cargo.toml [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] warning: /workspace/builds/worker-1-tc1/source/2022/Cargo.toml: file `/workspace/builds/worker-1-tc1/source/2022/src/day01/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `2022` [INFO] [stderr] * `bin` target `day01` [INFO] [stderr] warning: /workspace/builds/worker-1-tc1/source/2023/Cargo.toml: file `/workspace/builds/worker-1-tc1/source/2023/src/day01/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `2023` [INFO] [stderr] * `bin` target `day01` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded integer-sqrt v0.1.5 [INFO] [stderr] Downloaded deprecate-until v0.1.1 [INFO] [stderr] Downloaded pathfinding v4.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] eb33a1151e5f58de6b7a542d02a0aec6261a567d72ebd3aea1a08d0bf9d8de54 [INFO] running `Command { std: "docker" "start" "-a" "eb33a1151e5f58de6b7a542d02a0aec6261a567d72ebd3aea1a08d0bf9d8de54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eb33a1151e5f58de6b7a542d02a0aec6261a567d72ebd3aea1a08d0bf9d8de54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eb33a1151e5f58de6b7a542d02a0aec6261a567d72ebd3aea1a08d0bf9d8de54", kill_on_drop: false }` [INFO] [stdout] eb33a1151e5f58de6b7a542d02a0aec6261a567d72ebd3aea1a08d0bf9d8de54 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0e56c7f773bf5ab6711b79b2431451342b956648865e0842a05511e5a7c70d2c [INFO] running `Command { std: "docker" "start" "-a" "0e56c7f773bf5ab6711b79b2431451342b956648865e0842a05511e5a7c70d2c", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/2022/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/2023/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [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] warning: /opt/rustwide/workdir/2023/Cargo.toml: file `/opt/rustwide/workdir/2023/src/day01/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `2023` [INFO] [stderr] * `bin` target `day01` [INFO] [stderr] warning: /opt/rustwide/workdir/2022/Cargo.toml: file `/opt/rustwide/workdir/2022/src/day01/main.rs` found to be present in multiple build targets: [INFO] [stderr] * `bin` target `2022` [INFO] [stderr] * `bin` target `day01` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling semver v1.0.20 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking advent-2023 v0.1.0 (/opt/rustwide/workdir/2023) [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2023/src/dayXX/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | fn solve_1(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2023/src/dayXX/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn solve_2(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_XX` should have a snake case name [INFO] [stdout] --> 2023/src/dayXX/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn test_XX() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `test_xx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_XX_1` should have a snake case name [INFO] [stdout] --> 2023/src/dayXX/main.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn bench_XX_1(b: &mut Bencher) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bench_xx_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_XX_2` should have a snake case name [INFO] [stdout] --> 2023/src/dayXX/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn bench_XX_2(b: &mut Bencher) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bench_xx_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2023/src/dayXX/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | fn solve_1(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2023/src/dayXX/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn solve_2(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking indexmap v2.1.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking integer-sqrt v0.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling deprecate-until v0.1.1 [INFO] [stderr] Checking pathfinding v4.4.0 [INFO] [stderr] Checking advent-2022 v0.1.0 (/opt/rustwide/workdir/2022) [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2022/src/day17/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | fn solve_1(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2022/src/day17/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn solve_2(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2022/src/dayXX/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | fn solve_1(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2022/src/dayXX/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn solve_2(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_XX` should have a snake case name [INFO] [stdout] --> 2022/src/dayXX/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn test_XX() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `test_xx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_XX_1` should have a snake case name [INFO] [stdout] --> 2022/src/dayXX/main.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn bench_XX_1(b: &mut Bencher) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bench_xx_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_XX_2` should have a snake case name [INFO] [stdout] --> 2022/src/dayXX/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn bench_XX_2(b: &mut Bencher) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bench_xx_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> 2022/src/day16/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 83 | let successors = |(t, v): &(usize, Valve)| { [INFO] [stdout] | - - return type of closure is Map, {closure@2022/src/day16/main.rs:86:18: 86:21}> [INFO] [stdout] | | [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] 84 | / v.edges [INFO] [stdout] 85 | | .iter() [INFO] [stdout] 86 | | .map(|e| (t.clone() - 1, map.get(e).unwrap().clone())) [INFO] [stdout] | |__________________________________________________________________^ returning this value requires that `'1` must outlive `'2` [INFO] [stdout] | [INFO] [stdout] help: consider adding 'move' keyword before the nested closure [INFO] [stdout] | [INFO] [stdout] 86 | .map(move |e| (t.clone() - 1, map.get(e).unwrap().clone())) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2022/src/day16/main.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | fn solve_2(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-2022` (bin "day16") due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2022/src/day17/main.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | fn solve_1(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2022/src/day17/main.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | fn solve_2(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_XX` should have a snake case name [INFO] [stdout] --> 2022/src/day17/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn test_XX() { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `test_xx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_XX_1` should have a snake case name [INFO] [stdout] --> 2022/src/day17/main.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn bench_XX_1(b: &mut Bencher) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bench_xx_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bench_XX_2` should have a snake case name [INFO] [stdout] --> 2022/src/day17/main.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn bench_XX_2(b: &mut Bencher) { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `bench_xx_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a shared reference [INFO] [stdout] --> 2022/src/day02/main.rs:94:19 [INFO] [stdout] | [INFO] [stdout] 94 | ((1 + 3 + *self as usize - *other as usize) % 3).cmp(&1_usize) [INFO] [stdout] | ^^^^^ move occurs because `*self` has type `Hand`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `Hand` implemented `Clone`, you could clone the value [INFO] [stdout] --> 2022/src/day02/main.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum Hand { [INFO] [stdout] | ^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 94 | ((1 + 3 + *self as usize - *other as usize) % 3).cmp(&1_usize) [INFO] [stdout] | ----- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*other` which is behind a shared reference [INFO] [stdout] --> 2022/src/day02/main.rs:94:36 [INFO] [stdout] | [INFO] [stdout] 94 | ((1 + 3 + *self as usize - *other as usize) % 3).cmp(&1_usize) [INFO] [stdout] | ^^^^^^ move occurs because `*other` has type `Hand`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `Hand` implemented `Clone`, you could clone the value [INFO] [stdout] --> 2022/src/day02/main.rs:71:1 [INFO] [stdout] | [INFO] [stdout] 71 | pub enum Hand { [INFO] [stdout] | ^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 94 | ((1 + 3 + *self as usize - *other as usize) % 3).cmp(&1_usize) [INFO] [stdout] | ------ you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-2022` (bin "day02" test) due to 3 previous errors [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> 2022/src/day16/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 83 | let successors = |(t, v): &(usize, Valve)| { [INFO] [stdout] | - - return type of closure is Map, {closure@2022/src/day16/main.rs:86:18: 86:21}> [INFO] [stdout] | | [INFO] [stdout] | let's call the lifetime of this reference `'1` [INFO] [stdout] 84 | / v.edges [INFO] [stdout] 85 | | .iter() [INFO] [stdout] 86 | | .map(|e| (t.clone() - 1, map.get(e).unwrap().clone())) [INFO] [stdout] | |__________________________________________________________________^ returning this value requires that `'1` must outlive `'2` [INFO] [stdout] | [INFO] [stdout] help: consider adding 'move' keyword before the nested closure [INFO] [stdout] | [INFO] [stdout] 86 | .map(move |e| (t.clone() - 1, map.get(e).unwrap().clone())) [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> 2022/src/day16/main.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | fn solve_2(input: &str) -> String { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `advent-2022` (bin "day16" test) due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "0e56c7f773bf5ab6711b79b2431451342b956648865e0842a05511e5a7c70d2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e56c7f773bf5ab6711b79b2431451342b956648865e0842a05511e5a7c70d2c", kill_on_drop: false }` [INFO] [stdout] 0e56c7f773bf5ab6711b79b2431451342b956648865e0842a05511e5a7c70d2c