[INFO] cloning repository https://github.com/cfraga/aoc-2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cfraga/aoc-2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfraga%2Faoc-2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfraga%2Faoc-2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e630350bf695f802c437312cf6ca46595ab8c168 [INFO] checking cfraga/aoc-2023/e630350bf695f802c437312cf6ca46595ab8c168 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcfraga%2Faoc-2023" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cfraga/aoc-2023 on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cfraga/aoc-2023 [INFO] finished tweaking git repo https://github.com/cfraga/aoc-2023 [INFO] tweaked toml for git repo https://github.com/cfraga/aoc-2023 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/cfraga/aoc-2023 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6eccb944068991b1609a8679f79c02eacb40ba1f1a8250bb62bd1dee1a081f30 [INFO] running `Command { std: "docker" "start" "-a" "6eccb944068991b1609a8679f79c02eacb40ba1f1a8250bb62bd1dee1a081f30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6eccb944068991b1609a8679f79c02eacb40ba1f1a8250bb62bd1dee1a081f30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6eccb944068991b1609a8679f79c02eacb40ba1f1a8250bb62bd1dee1a081f30", kill_on_drop: false }` [INFO] [stdout] 6eccb944068991b1609a8679f79c02eacb40ba1f1a8250bb62bd1dee1a081f30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d0f1b1783bea11d40dd586a48e48b1505a7903b1edc415bb08aec9b4af61153b [INFO] running `Command { std: "docker" "start" "-a" "d0f1b1783bea11d40dd586a48e48b1505a7903b1edc415bb08aec9b4af61153b", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking array_tool v1.0.3 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking aoc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/day2/solve.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::{BufReader, BufRead}, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day2/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day3/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day4/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day5/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day5/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::Wrapping` [INFO] [stdout] --> src/day6/solve.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::{BufReader, BufRead}, num::Wrapping}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day6/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/day6/solve.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day6/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::Wrapping` [INFO] [stdout] --> src/day7/solve.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, io::{BufReader, BufRead}, num::Wrapping}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day7/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`, `num::Wrapping`, and `sync::Arc` [INFO] [stdout] --> src/day8/solve.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, io::{BufReader, BufRead}, num::Wrapping, sync::Arc, borrow::{BorrowMut, Borrow}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day8/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/day8/solve.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day8/solve.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day8/solve.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`, `collections::HashMap`, `num::Wrapping`, and `sync::Arc` [INFO] [stdout] --> src/day9/solve.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, io::{BufReader, BufRead}, num::Wrapping, sync::Arc, borrow::{BorrowMut, Borrow}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day9/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `str::FromStr` [INFO] [stdout] --> src/day2/solve.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::{BufReader, BufRead}, str::FromStr}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day2/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day3/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day4/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day5/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day5/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::Wrapping` [INFO] [stdout] --> src/day6/solve.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fs::File, io::{BufReader, BufRead}, num::Wrapping}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day6/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/day6/solve.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Captures` and `Regex` [INFO] [stdout] --> src/day6/solve.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use regex::{Regex, Captures}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num::Wrapping` [INFO] [stdout] --> src/day7/solve.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, io::{BufReader, BufRead}, num::Wrapping}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day7/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`, `num::Wrapping`, and `sync::Arc` [INFO] [stdout] --> src/day8/solve.rs:1:69 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, io::{BufReader, BufRead}, num::Wrapping, sync::Arc, borrow::{BorrowMut, Borrow}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day8/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::debug` [INFO] [stdout] --> src/day8/solve.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::debug; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day8/solve.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/day8/solve.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow`, `collections::HashMap`, `num::Wrapping`, and `sync::Arc` [INFO] [stdout] --> src/day9/solve.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, fs::File, io::{BufReader, BufRead}, num::Wrapping, sync::Arc, borrow::{BorrowMut, Borrow}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `array_tool::vec::Intersect` [INFO] [stdout] --> src/day9/solve.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use array_tool::vec::Intersect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day7/solve.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 91 | / match num_jokers { [INFO] [stdout] 92 | | 5|4 => { return HandType::FiveKind; }, [INFO] [stdout] 93 | | 3 => { [INFO] [stdout] 94 | | match *count_vec[0].1 { [INFO] [stdout] ... | [INFO] [stdout] 131 | | }, [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 133 | [INFO] [stdout] 134 | panic!("wat?! dunno what hand type this is"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/day7/solve.rs:134:5 [INFO] [stdout] | [INFO] [stdout] 91 | / match num_jokers { [INFO] [stdout] 92 | | 5|4 => { return HandType::FiveKind; }, [INFO] [stdout] 93 | | 3 => { [INFO] [stdout] 94 | | match *count_vec[0].1 { [INFO] [stdout] ... | [INFO] [stdout] 131 | | }, [INFO] [stdout] 132 | | } [INFO] [stdout] | |_____- any code following this `match` expression is unreachable, as all arms diverge [INFO] [stdout] 133 | [INFO] [stdout] 134 | panic!("wat?! dunno what hand type this is"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/day4/solve.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | for (n, l) in reader.lines().flat_map( |maybe_l| maybe_l.ok()).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/day6/solve.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let reader = BufReader::new(f); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/day7/solve.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let reader = BufReader::new(f); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/day4/solve.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 40 | for (n, l) in reader.lines().flat_map( |maybe_l| maybe_l.ok()).enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc` [INFO] [stdout] --> src/day9/solve.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | let mut acc = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day9/solve.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | let mut acc = 0; [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: unused variable: `acc` [INFO] [stdout] --> src/day9/solve.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut acc = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day9/solve.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut acc = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DAY` is never used [INFO] [stdout] --> src/day4/solve.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const DAY: &str="day4"; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DAY` is never used [INFO] [stdout] --> src/day5/solve.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const DAY: &str="day5"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DAY` is never used [INFO] [stdout] --> src/day6/solve.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const DAY: &str="day6"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DAY` is never used [INFO] [stdout] --> src/day7/solve.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const DAY: &str="day7"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hand` and `kind` are never read [INFO] [stdout] --> src/day7/solve.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Hand { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | hand: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | strength: u32, [INFO] [stdout] 11 | kind: HandType, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DAY` is never used [INFO] [stdout] --> src/day8/solve.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const DAY: &str="day8"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DAY` is never used [INFO] [stdout] --> src/day9/solve.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const DAY: &str="day9"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val`, `l`, and `r` are never read [INFO] [stdout] --> src/day9/solve.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | l: String, [INFO] [stdout] | ^ [INFO] [stdout] 12 | r: String, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day1/solve.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | [INFO] [stdout] 11 | / reader.lines() [INFO] [stdout] 12 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 13 | | .map(|l| first_last_digits(l)) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day1/solve.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | [INFO] [stdout] 21 | / reader.lines() [INFO] [stdout] 22 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 23 | | .map( |l| literal_to_number(l)) [INFO] [stdout] 24 | | .map(|l| first_last_digits(l)) [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day2/solve.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 50 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 51 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | / reader.lines() [INFO] [stdout] 55 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 56 | | .map(|l| parse_game(l)) [INFO] [stdout] 57 | | .filter(|g| elligible_game(g, &max_bag_trinkets)) [INFO] [stdout] 58 | | .map(|g| g.id) [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day2/solve.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 64 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 65 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | [INFO] [stdout] 67 | / reader.lines() [INFO] [stdout] 68 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 69 | | .map(|l| parse_game(l)) [INFO] [stdout] 70 | | .map(|g| g.power()) [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day4/solve.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | [INFO] [stdout] 12 | / reader.lines() [INFO] [stdout] 13 | | .flat_map(|maybe_l| maybe_l.ok()) [INFO] [stdout] 14 | | .map(|l| parse_line(l)) [INFO] [stdout] 15 | | .map(|(l, r)| winning_numbers(&l, &r)) [INFO] [stdout] 16 | | .filter(|n| *n > 0) [INFO] [stdout] 17 | | .map(|n| score(n)) [INFO] [stdout] 18 | | .inspect(|n| debug!("score: {}", n)) [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day9/solve.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 17 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 18 | [INFO] [stdout] 19 | / reader.lines() [INFO] [stdout] 20 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 21 | | .map(|l| l.split_whitespace().map(|n| n.parse::().unwrap()).collect()) [INFO] [stdout] 22 | | .map(|sequence| calculate_sequence(sequence)) [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day9/solve.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 68 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 69 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 70 | [INFO] [stdout] 71 | / reader.lines() [INFO] [stdout] 72 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 73 | | .map(|l| l.split_whitespace().map(|n| n.parse::().unwrap()).collect()) [INFO] [stdout] 74 | | .map(|sequence| calc_sequence_first(sequence)) [INFO] [stdout] 75 | | .inspect(|val| debug!("total {}", val)) [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc` (lib) due to 8 previous errors; 35 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/day6/solve.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | let reader = BufReader::new(f); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `reader` [INFO] [stdout] --> src/day7/solve.rs:139:9 [INFO] [stdout] | [INFO] [stdout] 139 | let reader = BufReader::new(f); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `acc` [INFO] [stdout] --> src/day9/solve.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | let mut acc = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day9/solve.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 27 | let mut acc = 0; [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: unused variable: `acc` [INFO] [stdout] --> src/day9/solve.rs:44:13 [INFO] [stdout] | [INFO] [stdout] 44 | let mut acc = 0; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_acc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/day9/solve.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let mut acc = 0; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hand` and `kind` are never read [INFO] [stdout] --> src/day7/solve.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Hand { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 9 | hand: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | strength: u32, [INFO] [stdout] 11 | kind: HandType, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Hand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `val`, `l`, and `r` are never read [INFO] [stdout] --> src/day9/solve.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 10 | val: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | l: String, [INFO] [stdout] | ^ [INFO] [stdout] 12 | r: String, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day1/solve.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 9 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | [INFO] [stdout] 11 | / reader.lines() [INFO] [stdout] 12 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 13 | | .map(|l| first_last_digits(l)) [INFO] [stdout] | |__________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day1/solve.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 19 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 20 | [INFO] [stdout] 21 | / reader.lines() [INFO] [stdout] 22 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 23 | | .map( |l| literal_to_number(l)) [INFO] [stdout] 24 | | .map(|l| first_last_digits(l)) [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day2/solve.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 50 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 51 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 54 | / reader.lines() [INFO] [stdout] 55 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 56 | | .map(|l| parse_game(l)) [INFO] [stdout] 57 | | .filter(|g| elligible_game(g, &max_bag_trinkets)) [INFO] [stdout] 58 | | .map(|g| g.id) [INFO] [stdout] | |______________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day2/solve.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 64 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 65 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 66 | [INFO] [stdout] 67 | / reader.lines() [INFO] [stdout] 68 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 69 | | .map(|l| parse_game(l)) [INFO] [stdout] 70 | | .map(|g| g.power()) [INFO] [stdout] | |___________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day4/solve.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 10 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 11 | [INFO] [stdout] 12 | / reader.lines() [INFO] [stdout] 13 | | .flat_map(|maybe_l| maybe_l.ok()) [INFO] [stdout] 14 | | .map(|l| parse_line(l)) [INFO] [stdout] 15 | | .map(|(l, r)| winning_numbers(&l, &r)) [INFO] [stdout] 16 | | .filter(|n| *n > 0) [INFO] [stdout] 17 | | .map(|n| score(n)) [INFO] [stdout] 18 | | .inspect(|n| debug!("score: {}", n)) [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day9/solve.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 16 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 17 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 18 | [INFO] [stdout] 19 | / reader.lines() [INFO] [stdout] 20 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 21 | | .map(|l| l.split_whitespace().map(|n| n.parse::().unwrap()).collect()) [INFO] [stdout] 22 | | .map(|sequence| calculate_sequence(sequence)) [INFO] [stdout] | |_____________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/day9/solve.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 68 | let f = File::open(file_path).expect("couldnt open file"); [INFO] [stdout] | - these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 69 | let reader = BufReader::new(f); [INFO] [stdout] | ------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 70 | [INFO] [stdout] 71 | / reader.lines() [INFO] [stdout] 72 | | .flat_map( |maybe_l| maybe_l.ok()) [INFO] [stdout] 73 | | .map(|l| l.split_whitespace().map(|n| n.parse::().unwrap()).collect()) [INFO] [stdout] 74 | | .map(|sequence| calc_sequence_first(sequence)) [INFO] [stdout] 75 | | .inspect(|val| debug!("total {}", val)) [INFO] [stdout] | |___________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `aoc` (lib test) due to 8 previous errors; 29 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d0f1b1783bea11d40dd586a48e48b1505a7903b1edc415bb08aec9b4af61153b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0f1b1783bea11d40dd586a48e48b1505a7903b1edc415bb08aec9b4af61153b", kill_on_drop: false }` [INFO] [stdout] d0f1b1783bea11d40dd586a48e48b1505a7903b1edc415bb08aec9b4af61153b