[INFO] cloning repository https://github.com/delta62/aoc2020 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/delta62/aoc2020" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdelta62%2Faoc2020", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdelta62%2Faoc2020'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e3861627bf69b6a912f86314cd8a29ab8d7151ce [INFO] checking delta62/aoc2020/e3861627bf69b6a912f86314cd8a29ab8d7151ce against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdelta62%2Faoc2020" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/delta62/aoc2020 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/delta62/aoc2020 [INFO] finished tweaking git repo https://github.com/delta62/aoc2020 [INFO] tweaked toml for git repo https://github.com/delta62/aoc2020 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/delta62/aoc2020 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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 2bc18139a07ffd0b9b1a1973071524d6af941f9dd7363e36c105a617f7551730 [INFO] running `Command { std: "docker" "start" "-a" "2bc18139a07ffd0b9b1a1973071524d6af941f9dd7363e36c105a617f7551730", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2bc18139a07ffd0b9b1a1973071524d6af941f9dd7363e36c105a617f7551730", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2bc18139a07ffd0b9b1a1973071524d6af941f9dd7363e36c105a617f7551730", kill_on_drop: false }` [INFO] [stdout] 2bc18139a07ffd0b9b1a1973071524d6af941f9dd7363e36c105a617f7551730 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 49a1bbbd468c4e7e4ff0c1e211837beb1f8140e2d57873610289bead9c7d7171 [INFO] running `Command { std: "docker" "start" "-a" "49a1bbbd468c4e7e4ff0c1e211837beb1f8140e2d57873610289bead9c7d7171", 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 libc v0.2.150 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Compiling rustls v0.21.9 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking anstyle-query v1.0.1 [INFO] [stderr] Checking miniz_oxide v0.7.1 [INFO] [stderr] Checking anstyle v1.0.4 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling inventory v0.3.13 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling aoc_runner_core v0.1.0 (https://github.com/delta62/aoc_runner.git#1bf521c9) [INFO] [stderr] Checking anstream v0.6.4 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking base64 v0.21.5 [INFO] [stderr] Checking clap_lex v0.6.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking getrandom v0.2.11 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling syn v2.0.39 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking webpki-roots v0.25.3 [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stderr] Checking clap_builder v4.4.11 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling ring v0.17.7 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking clap v4.4.11 [INFO] [stderr] Compiling aoc_runner_macros v0.1.0 (https://github.com/delta62/aoc_runner.git#1bf521c9) [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Checking ureq v2.9.1 [INFO] [stderr] Checking aoc_runner v0.1.0 (https://github.com/delta62/aoc_runner.git#1bf521c9) [INFO] [stderr] Checking aoc v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `aoc` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/days/day05.rs [INFO] [stderr] * src/input.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/input.rs:26:6 [INFO] [stderr] | [INFO] [stderr] 26 | ($expr:expr_2021 => $type:ty) => {{ [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/input.rs:40:6 [INFO] [stderr] | [INFO] [stderr] 40 | ($expr:expr_2021 => $type:ty; $sep:literal) => {{ [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] warning: elided lifetime has a name [INFO] [stderr] --> src/days/day05.rs:118:42 [INFO] [stderr] | [INFO] [stderr] 115 | fn find_mappings_to_fulfill<'a>( [INFO] [stderr] | -- lifetime `'a` declared here [INFO] [stderr] ... [INFO] [stderr] 118 | ) -> impl Iterator + '_ { [INFO] [stderr] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 1 warning emitted [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: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/input.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | ($expr:expr => $type:ty) => {{ [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] 26 | ($expr:expr_2021 => $type:ty) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/input.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | ($expr:expr => $type:ty; $sep:literal) => {{ [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] 40 | ($expr:expr_2021 => $type:ty; $sep:literal) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/days/day05.rs:118:42 [INFO] [stdout] | [INFO] [stdout] 115 | fn find_mappings_to_fulfill<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 118 | ) -> impl Iterator + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day05.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut almanac = blocks.try_fold(almanac, |mut acc, block| { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `almanac_map` is never used [INFO] [stdout] --> src/days/day05.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Stage { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | fn almanac_map(&self, input: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `almanac_map` is never used [INFO] [stdout] --> src/days/day05.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl Mapping { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 139 | fn almanac_map(&self, input: i64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `towards` is never used [INFO] [stdout] --> src/geom.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Point { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 23 | pub fn towards(&self, direction: Direction) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | if let Some(day) = args.get_one::("day") { [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/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | } else if args.get_flag("all") { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 29 ~ match args.get_one::("day") { Some(day) => { [INFO] [stdout] 30 | runner.run_day(2023, *day)?; [INFO] [stdout] 31 ~ } _ => if args.get_flag("all") { [INFO] [stdout] 32 | runner.run_all()?; [INFO] [stdout] 33 | } else { [INFO] [stdout] 34 | runner.run_latest_day()?; [INFO] [stdout] 35 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/input.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn iter(&self) -> impl Iterator { [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/input.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn iter(&self) -> impl Iterator { [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] 13 | pub fn iter(&self) -> impl Iterator + use<'a> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/days/day03.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | if let Some(sym) = &cap.name("sym") { [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/days/day03.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 90 ~ match &cap.name("sym") { Some(sym) => { [INFO] [stdout] 91 | let x = sym.start(); [INFO] [stdout] 92 | let value = sym.as_str().chars().next().unwrap(); [INFO] [stdout] 93 | symbols.push(Symbol { value, x, y }); [INFO] [stdout] 94 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/input.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | ($expr:expr => $type:ty) => {{ [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] 26 | ($expr:expr_2021 => $type:ty) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `aoc` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/input.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | ($expr:expr => $type:ty; $sep:literal) => {{ [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] 40 | ($expr:expr_2021 => $type:ty; $sep:literal) => {{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/days/day05.rs:118:42 [INFO] [stdout] | [INFO] [stdout] 115 | fn find_mappings_to_fulfill<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 118 | ) -> impl Iterator + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day05.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut almanac = blocks.try_fold(almanac, |mut acc, block| { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: method `almanac_map` is never used [INFO] [stdout] --> src/days/day05.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Stage { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | fn almanac_map(&self, input: i64) -> i64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/days/day05.rs [INFO] [stdout] warning: method `almanac_map` is never used [INFO] [stdout] --> src/days/day05.rs:139:8 [INFO] [stdout] | [INFO] [stdout] 138 | impl Mapping { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] 139 | fn almanac_map(&self, input: i64) -> Option { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/input.rs [INFO] [stdout] warning: method `towards` is never used [INFO] [stdout] --> src/geom.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 22 | impl Point { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] 23 | pub fn towards(&self, direction: Direction) -> Option> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [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/input.rs:26:6 [INFO] [stderr] | [INFO] [stderr] 26 | ($expr:expr_2021 => $type:ty) => {{ [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/input.rs:40:6 [INFO] [stderr] | [INFO] [stderr] 40 | ($expr:expr_2021 => $type:ty; $sep:literal) => {{ [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] warning: elided lifetime has a name [INFO] [stderr] --> src/days/day05.rs:118:42 [INFO] [stderr] | [INFO] [stderr] 115 | fn find_mappings_to_fulfill<'a>( [INFO] [stderr] | -- lifetime `'a` declared here [INFO] [stderr] ... [INFO] [stderr] 118 | ) -> impl Iterator + '_ { [INFO] [stderr] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors; 1 warning emitted [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/main.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | if let Some(day) = args.get_one::("day") { [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/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | } else if args.get_flag("all") { [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 29 ~ match args.get_one::("day") { Some(day) => { [INFO] [stdout] 30 | runner.run_day(2023, *day)?; [INFO] [stdout] 31 ~ } _ => if args.get_flag("all") { [INFO] [stdout] 32 | runner.run_all()?; [INFO] [stdout] 33 | } else { [INFO] [stdout] 34 | runner.run_latest_day()?; [INFO] [stdout] 35 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Iterator` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/input.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn iter(&self) -> impl Iterator { [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/input.rs:13:17 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn iter(&self) -> impl Iterator { [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] 13 | pub fn iter(&self) -> impl Iterator + use<'a> { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/days/day03.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | if let Some(sym) = &cap.name("sym") { [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/days/day03.rs:94:17 [INFO] [stdout] | [INFO] [stdout] 94 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 90 ~ match &cap.name("sym") { Some(sym) => { [INFO] [stdout] 91 | let x = sym.start(); [INFO] [stdout] 92 | let value = sym.as_str().chars().next().unwrap(); [INFO] [stdout] 93 | symbols.push(Symbol { value, x, y }); [INFO] [stdout] 94 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.72s [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking aoc v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/days/day05.rs:118:42 [INFO] [stdout] | [INFO] [stdout] 115 | fn find_mappings_to_fulfill<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 118 | ) -> impl Iterator + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/days/day05.rs:118:42 [INFO] [stdout] | [INFO] [stdout] 115 | fn find_mappings_to_fulfill<'a>( [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] ... [INFO] [stdout] 118 | ) -> impl Iterator + '_ { [INFO] [stdout] | ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day05.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut almanac = blocks.try_fold(almanac, |mut acc, block| { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/days/day05.rs:172:26 [INFO] [stdout] | [INFO] [stdout] 172 | let mut blocks = Paragraphs::parse(input)?.iter(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 173 | [INFO] [stdout] 174 | let seeds_block = parse_opt!(blocks.next(), "Input was empty")?; [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider consuming the `Paragraphs<'_>` when turning it into an `Iterator` [INFO] [stdout] | [INFO] [stdout] 172 | let mut blocks = Paragraphs::parse(input)?.into_iter(); [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 172 ~ let binding = Paragraphs::parse(input)?; [INFO] [stdout] 173 ~ let mut blocks = binding.iter(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/days/day05.rs:186:13 [INFO] [stdout] | [INFO] [stdout] 186 | let mut almanac = blocks.try_fold(almanac, |mut acc, block| { [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/days/day05.rs:172:26 [INFO] [stdout] | [INFO] [stdout] 172 | let mut blocks = Paragraphs::parse(input)?.iter(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] 173 | [INFO] [stdout] 174 | let seeds_block = parse_opt!(blocks.next(), "Input was empty")?; [INFO] [stdout] | ------ borrow later used here [INFO] [stdout] | [INFO] [stdout] help: consider consuming the `input::Paragraphs<'_>` when turning it into an `Iterator` [INFO] [stdout] | [INFO] [stdout] 172 | let mut blocks = Paragraphs::parse(input)?.into_iter(); [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] help: consider using a `let` binding to create a longer lived value [INFO] [stdout] | [INFO] [stdout] 172 ~ let binding = Paragraphs::parse(input)?; [INFO] [stdout] 173 ~ let mut blocks = binding.iter(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc` (bin "aoc") due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc` (bin "aoc" test) due to 2 previous errors; 2 warnings 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" "49a1bbbd468c4e7e4ff0c1e211837beb1f8140e2d57873610289bead9c7d7171", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49a1bbbd468c4e7e4ff0c1e211837beb1f8140e2d57873610289bead9c7d7171", kill_on_drop: false }` [INFO] [stdout] 49a1bbbd468c4e7e4ff0c1e211837beb1f8140e2d57873610289bead9c7d7171