[INFO] cloning repository https://github.com/Pascal-So/aoc_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Pascal-So/aoc_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPascal-So%2Faoc_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPascal-So%2Faoc_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0820590ff2dc1fc29861781ef73edf250a377ae9 [INFO] checking Pascal-So/aoc_rust/0820590ff2dc1fc29861781ef73edf250a377ae9 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPascal-So%2Faoc_rust" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Pascal-So/aoc_rust on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Pascal-So/aoc_rust [INFO] finished tweaking git repo https://github.com/Pascal-So/aoc_rust [INFO] tweaked toml for git repo https://github.com/Pascal-So/aoc_rust written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Pascal-So/aoc_rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 01ab2bb4bbbf1c3a46ce2227a1195150a4168cc337bf67ad48f1a39aa5ba1e10 [INFO] running `Command { std: "docker" "start" "-a" "01ab2bb4bbbf1c3a46ce2227a1195150a4168cc337bf67ad48f1a39aa5ba1e10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "01ab2bb4bbbf1c3a46ce2227a1195150a4168cc337bf67ad48f1a39aa5ba1e10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01ab2bb4bbbf1c3a46ce2227a1195150a4168cc337bf67ad48f1a39aa5ba1e10", kill_on_drop: false }` [INFO] [stdout] 01ab2bb4bbbf1c3a46ce2227a1195150a4168cc337bf67ad48f1a39aa5ba1e10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aeb7b6585b29970e077d79a14454490a21056249514337d742686ec8865e327f [INFO] running `Command { std: "docker" "start" "-a" "aeb7b6585b29970e077d79a14454490a21056249514337d742686ec8865e327f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libm v0.2.1 [INFO] [stderr] Compiling proc-macro2 v1.0.34 [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling serde v1.0.131 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling semver v1.0.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking either v1.6.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling radium v0.6.2 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Checking itertools v0.10.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Compiling nom v7.1.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Checking wyz v0.4.0 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking ryu v1.0.9 [INFO] [stderr] Checking funty v1.2.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling serde_json v1.0.73 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Compiling paste v1.0.6 [INFO] [stderr] Checking matrixmultiply v0.2.4 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking crossbeam-deque v0.8.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking crossbeam-channel v0.5.1 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Checking fixedbitset v0.4.0 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Checking bitvec v0.22.3 [INFO] [stderr] Checking bytes v1.1.0 [INFO] [stderr] Checking itoa v1.0.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking unicode-width v0.1.9 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Compiling serde_derive v1.0.131 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking combine v4.6.2 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking impl_ops v0.1.1 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking half v1.8.2 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking num-complex v0.3.1 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking integer-sqrt v0.1.5 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Checking pathfinding v3.0.5 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking criterion-plot v0.4.4 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking modinverse v0.1.1 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking simba v0.3.1 [INFO] [stderr] Checking rand_distr v0.3.0 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking bstr v0.2.15 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Compiling darling_core v0.13.1 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling darling_macro v0.13.1 [INFO] [stderr] Compiling darling v0.13.1 [INFO] [stderr] Compiling deku_derive v0.12.5 [INFO] [stderr] Checking nalgebra v0.24.1 [INFO] [stderr] Checking deku v0.12.5 [INFO] [stderr] Checking criterion v0.3.5 [INFO] [stderr] Checking advent v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `advent` [INFO] [stdout] warning: unused import: `char` [INFO] [stdout] --> src/y2021/d05.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | character::complete::{char, i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:22:47 [INFO] [stderr] | [INFO] [stderr] 22 | ($year:ident, $day:ident, $suffix:ident, ($sol_a:expr_2021, _)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:22:54 [INFO] [stdout] | [INFO] [stdout] 22 | ($year:ident, $day:ident, $suffix:ident, ($sol_a:expr, _)) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 22 | ($year:ident, $day:ident, $suffix:ident, ($sol_a:expr_2021, _)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:33:57 [INFO] [stdout] | [INFO] [stdout] 33 | ($year:ident, $day:ident, $suffix:ident, (_, $sol_b:expr)) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 33 | ($year:ident, $day:ident, $suffix:ident, (_, $sol_b:expr_2021)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:44:56 [INFO] [stdout] | [INFO] [stdout] 44 | ($year:ident, $day:ident, $suffix:ident, $solution:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 44 | ($year:ident, $day:ident, $suffix:ident, $solution:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/union_find.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | while let Err(parent) = self.data[set.0] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/union_find.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/union_find.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 62 | while let Err(parent) = self.data[set.0] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/union_find.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:33:50 [INFO] [stderr] | [INFO] [stderr] 33 | ($year:ident, $day:ident, $suffix:ident, (_, $sol_b:expr_2021)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:44:46 [INFO] [stderr] | [INFO] [stderr] 44 | ($year:ident, $day:ident, $suffix:ident, $solution:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/y2019/d04.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | if let [l, u] = io::parse_vec(buf, b'-', false)?.as_slice() { [INFO] [stdout] | ^^^^^^^^^^^^^--------------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/y2019/d04.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 9 ~ match io::parse_vec(buf, b'-', false)?.as_slice() { [l, u] => { [INFO] [stdout] 10 | Ok((*l, *u)) [INFO] [stdout] 11 ~ } _ => { [INFO] [stdout] 12 | bail!("Incorrect number of segments in input!"); [INFO] [stdout] 13 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/y2021/d18.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | } else if let Some((left, right)) = pair.0.explode(depth + 1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 62 | } else if let Some((left, right)) = pair.1.explode(depth + 1) { [INFO] [stdout] | ------ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/y2021/d18.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | } else if let Some((left, right)) = pair.1.explode(depth + 1) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/y2021/d18.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 57 ~ } else { match pair.0.explode(depth + 1) { Some((left, right)) => { [INFO] [stdout] 58 | if let Some(amount) = right { [INFO] [stdout] ... [INFO] [stdout] 61 | Some((left, None)) [INFO] [stdout] 62 ~ } _ => { match pair.1.explode(depth + 1) { Some((left, right)) => { [INFO] [stdout] 63 | if let Some(amount) = left { [INFO] [stdout] ... [INFO] [stdout] 66 | Some((None, right)) [INFO] [stdout] 67 ~ } _ => { [INFO] [stdout] 68 | None [INFO] [stdout] 69 ~ }}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl IntoIterator, i64)>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/y2021/d23.rs:133:27 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/y2021/d23.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/y2022/d01.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | Ok(if let Some(line) = line { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/y2022/d01.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 32 ~ Ok(match line { Some(line) => { [INFO] [stdout] 33 | let calories = line.context("i32 parse error")?; [INFO] [stdout] 34 | (max, current_sum + calories) [INFO] [stdout] 35 ~ } _ => { [INFO] [stdout] 36 | let mut insert = current_sum; [INFO] [stdout] ... [INFO] [stdout] 42 | (max, 0) [INFO] [stdout] 43 ~ }}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `advent` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/lib.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:22:47 [INFO] [stderr] | [INFO] [stderr] 22 | ($year:ident, $day:ident, $suffix:ident, ($sol_a:expr_2021, _)) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: unused import: `char` [INFO] [stdout] --> src/y2021/d05.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | character::complete::{char, i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/lib.rs:33:50 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:22:54 [INFO] [stdout] | [INFO] [stdout] 22 | ($year:ident, $day:ident, $suffix:ident, ($sol_a:expr, _)) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 22 | ($year:ident, $day:ident, $suffix:ident, ($sol_a:expr_2021, _)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:33:57 [INFO] [stdout] | [INFO] [stdout] 33 | ($year:ident, $day:ident, $suffix:ident, (_, $sol_b:expr)) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 33 | ($year:ident, $day:ident, $suffix:ident, (_, $sol_b:expr_2021)) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 33 | ($year:ident, $day:ident, $suffix:ident, (_, $sol_b:expr_2021)) => { [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/lib.rs:44:56 [INFO] [stdout] | [INFO] [stdout] 44 | ($year:ident, $day:ident, $suffix:ident, $solution:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 44 | ($year:ident, $day:ident, $suffix:ident, $solution:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/lib.rs:44:46 [INFO] [stderr] | [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/union_find.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 53 | while let Err(parent) = self.data[set.0] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/union_find.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 44 | ($year:ident, $day:ident, $suffix:ident, $solution:expr_2021) => { [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/union_find.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 62 | while let Err(parent) = self.data[set.0] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^---------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/union_find.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/y2019/d04.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | if let [l, u] = io::parse_vec(buf, b'-', false)?.as_slice() { [INFO] [stdout] | ^^^^^^^^^^^^^--------------------------------^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/y2019/d04.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 9 ~ match io::parse_vec(buf, b'-', false)?.as_slice() { [l, u] => { [INFO] [stdout] 10 | Ok((*l, *u)) [INFO] [stdout] 11 ~ } _ => { [INFO] [stdout] 12 | bail!("Incorrect number of segments in input!"); [INFO] [stdout] 13 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/y2021/d18.rs:57:27 [INFO] [stdout] | [INFO] [stdout] 57 | } else if let Some((left, right)) = pair.0.explode(depth + 1) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^------^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] ... [INFO] [stdout] 62 | } else if let Some((left, right)) = pair.1.explode(depth + 1) { [INFO] [stdout] | ------ this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/y2021/d18.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | } else if let Some((left, right)) = pair.1.explode(depth + 1) { [INFO] [stdout] | ^ [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/y2021/d18.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 57 ~ } else { match pair.0.explode(depth + 1) { Some((left, right)) => { [INFO] [stdout] 58 | if let Some(amount) = right { [INFO] [stdout] ... [INFO] [stdout] 61 | Some((left, None)) [INFO] [stdout] 62 ~ } _ => { match pair.1.explode(depth + 1) { Some((left, right)) => { [INFO] [stdout] 63 | if let Some(amount) = left { [INFO] [stdout] ... [INFO] [stdout] 66 | Some((None, right)) [INFO] [stdout] 67 ~ } _ => { [INFO] [stdout] 68 | None [INFO] [stdout] 69 ~ }}}}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl IntoIterator, i64)>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/y2021/d23.rs:133:27 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/y2021/d23.rs:133:17 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/y2022/d01.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 32 | Ok(if let Some(line) = line { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^---- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/y2022/d01.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 32 ~ Ok(match line { Some(line) => { [INFO] [stdout] 33 | let calories = line.context("i32 parse error")?; [INFO] [stdout] 34 | (max, current_sum + calories) [INFO] [stdout] 35 ~ } _ => { [INFO] [stdout] 36 | let mut insert = current_sum; [INFO] [stdout] ... [INFO] [stdout] 42 | (max, 0) [INFO] [stdout] 43 ~ }}) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating benches/bench.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.23s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: criterion v0.3.5 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking advent v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `char` [INFO] [stdout] --> src/y2021/d05.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | character::complete::{char, i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `char` [INFO] [stdout] --> src/y2021/d05.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | character::complete::{char, i32}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/y2021/d23.rs:288:18 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> { [INFO] [stdout] | ------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 288 | let cost_a = astar(&start, State::next, State::min_cost, |state| { [INFO] [stdout] | __________________^ [INFO] [stdout] 289 | | state == &target [INFO] [stdout] 290 | | }) [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a> IntoIterator, i64)>` [INFO] [stdout] found opaque type `impl IntoIterator, i64)>` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/pathfinding-3.0.5/src/directed/astar.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | FN: FnMut(&N) -> IN, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/y2021/d23.rs:296:18 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> { [INFO] [stdout] | ------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 296 | let cost_b = astar(&full, State::next, State::min_cost, |state| { [INFO] [stdout] | __________________^ [INFO] [stdout] 297 | | state == &target_full [INFO] [stdout] 298 | | }) [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a> IntoIterator, i64)>` [INFO] [stdout] found opaque type `impl IntoIterator, i64)>` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/pathfinding-3.0.5/src/directed/astar.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | FN: FnMut(&N) -> IN, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent` (lib) due to 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/y2021/d23.rs:288:18 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> { [INFO] [stdout] | ------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 288 | let cost_a = astar(&start, State::next, State::min_cost, |state| { [INFO] [stdout] | __________________^ [INFO] [stdout] 289 | | state == &target [INFO] [stdout] 290 | | }) [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a> IntoIterator, i64)>` [INFO] [stdout] found opaque type `impl IntoIterator, i64)>` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/pathfinding-3.0.5/src/directed/astar.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | FN: FnMut(&N) -> IN, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/y2021/d23.rs:296:18 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn next(&self) -> impl IntoIterator, Cost)> { [INFO] [stdout] | ------------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | the expected opaque type [INFO] [stdout] | the found opaque type [INFO] [stdout] ... [INFO] [stdout] 296 | let cost_b = astar(&full, State::next, State::min_cost, |state| { [INFO] [stdout] | __________________^ [INFO] [stdout] 297 | | state == &target_full [INFO] [stdout] 298 | | }) [INFO] [stdout] | |______^ one type is more general than the other [INFO] [stdout] | [INFO] [stdout] = note: expected opaque type `impl for<'a> IntoIterator, i64)>` [INFO] [stdout] found opaque type `impl IntoIterator, i64)>` [INFO] [stdout] = note: distinct uses of `impl Trait` result in different opaque types [INFO] [stdout] note: the lifetime requirement is introduced here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/pathfinding-3.0.5/src/directed/astar.rs:89:22 [INFO] [stdout] | [INFO] [stdout] 89 | FN: FnMut(&N) -> IN, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `advent` (lib test) due to 3 previous errors; 1 warning emitted [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "aeb7b6585b29970e077d79a14454490a21056249514337d742686ec8865e327f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aeb7b6585b29970e077d79a14454490a21056249514337d742686ec8865e327f", kill_on_drop: false }` [INFO] [stdout] aeb7b6585b29970e077d79a14454490a21056249514337d742686ec8865e327f