[INFO] cloning repository https://github.com/JasonJ2021/AOC2023
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JasonJ2021/AOC2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJasonJ2021%2FAOC2023", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJasonJ2021%2FAOC2023'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] aff6de7e2a45dbe80f0ce02023f145ee786651a9
[INFO] checking JasonJ2021/AOC2023/aff6de7e2a45dbe80f0ce02023f145ee786651a9 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%2FJasonJ2021%2FAOC2023" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/JasonJ2021/AOC2023 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/JasonJ2021/AOC2023
[INFO] finished tweaking git repo https://github.com/JasonJ2021/AOC2023
[INFO] tweaked toml for git repo https://github.com/JasonJ2021/AOC2023 written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/JasonJ2021/AOC2023 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 9480bb09a47d8eb9f3821cf6b123540e69705e33baf8ab8a3a3ccb67cc346ddb
[INFO] running `Command { std: "docker" "start" "-a" "9480bb09a47d8eb9f3821cf6b123540e69705e33baf8ab8a3a3ccb67cc346ddb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9480bb09a47d8eb9f3821cf6b123540e69705e33baf8ab8a3a3ccb67cc346ddb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9480bb09a47d8eb9f3821cf6b123540e69705e33baf8ab8a3a3ccb67cc346ddb", kill_on_drop: false }`
[INFO] [stdout] 9480bb09a47d8eb9f3821cf6b123540e69705e33baf8ab8a3a3ccb67cc346ddb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] b9bd48d65fdd162a7ca180b29a323f938a79ddec75873d480b23c38ba9c0f86d
[INFO] running `Command { std: "docker" "start" "-a" "b9bd48d65fdd162a7ca180b29a323f938a79ddec75873d480b23c38ba9c0f86d", kill_on_drop: false }`
[INFO] [stderr] Checking gcd v2.3.0
[INFO] [stderr] Checking AOC2023 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `hash_map`
[INFO] [stdout] --> src/day7/main.rs:4:19
[INFO] [stdout] |
[INFO] [stdout] 4 | collections::{hash_map, HashMap},
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused imports: `btree_map::Entry`, `hash::Hash`, and `sync::Arc`
[INFO] [stdout] --> src/day8/main.rs:3:19
[INFO] [stdout] |
[INFO] [stdout] 3 | collections::{btree_map::Entry, HashMap},
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] 4 | hash::Hash,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] 5 | sync::Arc,
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/day7/main.rs:129:16
[INFO] [stdout] |
[INFO] [stdout] 129 | if (triples.1 == 'J' || pairs[0] == 'J') {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 129 - if (triples.1 == 'J' || pairs[0] == 'J') {
[INFO] [stdout] 129 + if triples.1 == 'J' || pairs[0] == 'J' {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::panic`
[INFO] [stdout] --> src/day1/main.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use core::panic;
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `str::from_utf8`
[INFO] [stdout] --> src/day1/main.rs:6:5
[INFO] [stdout] |
[INFO] [stdout] 6 | str::from_utf8,
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::panic`
[INFO] [stdout] --> src/day1/main.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use core::panic;
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `str::from_utf8`
[INFO] [stdout] --> src/day1/main.rs:6:5
[INFO] [stdout] |
[INFO] [stdout] 6 | str::from_utf8,
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::panic`
[INFO] [stdout] --> src/day2/main.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use core::panic;
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `str::from_utf8`
[INFO] [stdout] --> src/day2/main.rs:6:5
[INFO] [stdout] |
[INFO] [stdout] 6 | str::from_utf8,
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `game` should have an upper camel case name
[INFO] [stdout] --> src/day2/main.rs:10:8
[INFO] [stdout] |
[INFO] [stdout] 10 | struct game {
[INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Game`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/day1/main.rs:24:15
[INFO] [stdout] |
[INFO] [stdout] 24 | fn subst_word(mut line: String) -> String {
[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: 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/main.rs:89:8
[INFO] [stdout] |
[INFO] [stdout] 84 | fn read_lines
(path: P) -> io::Result>>
[INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 88 | let file = File::open(path)?;
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 89 | Ok(BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[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: aborting due to 1 previous error; 3 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::num`
[INFO] [stdout] --> src/day3/main.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use core::num;
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `AOC2023` (bin "day1" test) due to 2 previous errors; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused imports: `btree_map::Entry`, `hash::Hash`, and `sync::Arc`
[INFO] [stdout] --> src/day8/main.rs:3:19
[INFO] [stdout] |
[INFO] [stdout] 3 | collections::{btree_map::Entry, HashMap},
[INFO] [stdout] | ^^^^^^^^^^^^^^^^
[INFO] [stdout] 4 | hash::Hash,
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] 5 | sync::Arc,
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: value assigned to `steps` is never read
[INFO] [stdout] --> src/day8/main.rs:111:5
[INFO] [stdout] |
[INFO] [stdout] 111 | steps = 0;
[INFO] [stdout] | ^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: maybe it is overwritten before being read?
[INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `hash_map`
[INFO] [stdout] --> src/day7/main.rs:4:19
[INFO] [stdout] |
[INFO] [stdout] 4 | collections::{hash_map, HashMap},
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout] --> src/day7/main.rs:129:16
[INFO] [stdout] |
[INFO] [stdout] 129 | if (triples.1 == 'J' || pairs[0] == 'J') {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 129 - if (triples.1 == 'J' || pairs[0] == 'J') {
[INFO] [stdout] 129 + if triples.1 == 'J' || pairs[0] == 'J' {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/day1/main.rs:24:15
[INFO] [stdout] |
[INFO] [stdout] 24 | fn subst_word(mut line: String) -> String {
[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: 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/main.rs:89:8
[INFO] [stdout] |
[INFO] [stdout] 84 | fn read_lines(path: P) -> io::Result>>
[INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 88 | let file = File::open(path)?;
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 89 | Ok(BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[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: aborting due to 1 previous error; 3 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `is_end` is never used
[INFO] [stdout] --> src/day8/main.rs:8:4
[INFO] [stdout] |
[INFO] [stdout] 8 | fn is_end(input: &Vec<&str>) -> bool {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `compute_steps_part1` is never used
[INFO] [stdout] --> src/day8/main.rs:17:4
[INFO] [stdout] |
[INFO] [stdout] 17 | fn compute_steps_part1<'a>(
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `core::panic`
[INFO] [stdout] --> src/day2/main.rs:1:5
[INFO] [stdout] |
[INFO] [stdout] 1 | use core::panic;
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout] --> src/day2/main.rs:37:21
[INFO] [stdout] |
[INFO] [stdout] 37 | let info = data
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `str::from_utf8`
[INFO] [stdout] --> src/day2/main.rs:6:5
[INFO] [stdout] |
[INFO] [stdout] 6 | str::from_utf8,
[INFO] [stdout] | ^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: type `game` should have an upper camel case name
[INFO] [stdout] --> src/day2/main.rs:10:8
[INFO] [stdout] |
[INFO] [stdout] 10 | struct game {
[INFO] [stdout] | ^^^^ help: convert the identifier to upper camel case: `Game`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `AOC2023` (bin "day1") due to 2 previous errors; 3 warnings emitted
[INFO] [stdout] warning: variable `RED` should have a snake case name
[INFO] [stdout] --> src/day2/main.rs:20:9
[INFO] [stdout] |
[INFO] [stdout] 20 | let RED = 12;
[INFO] [stdout] | ^^^ help: convert the identifier to snake case: `red`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `PRIORITY_MAP` should have a snake case name
[INFO] [stdout] --> src/day7/main.rs:28:9
[INFO] [stdout] |
[INFO] [stdout] 28 | let PRIORITY_MAP: HashMap = HashMap::from([
[INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `priority_map`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `PRIORITY_MAP` should have a snake case name
[INFO] [stdout] --> src/day7/main.rs:56:9
[INFO] [stdout] |
[INFO] [stdout] 56 | let PRIORITY_MAP: HashMap = HashMap::from([
[INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `priority_map`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: value assigned to `steps` is never read
[INFO] [stdout] --> src/day8/main.rs:111:5
[INFO] [stdout] |
[INFO] [stdout] 111 | steps = 0;
[INFO] [stdout] | ^^^^^
[INFO] [stdout] |
[INFO] [stdout] = help: maybe it is overwritten before being read?
[INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `GREEN` should have a snake case name
[INFO] [stdout] --> src/day2/main.rs:21:9
[INFO] [stdout] |
[INFO] [stdout] 21 | let GREEN = 13;
[INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `green`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `BLUE` should have a snake case name
[INFO] [stdout] --> src/day2/main.rs:22:9
[INFO] [stdout] |
[INFO] [stdout] 22 | let BLUE = 14;
[INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `blue`
[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/main.rs:83:8
[INFO] [stdout] |
[INFO] [stdout] 78 | fn read_lines(path: P) -> io::Result>>
[INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 82 | let file = File::open(path)?;
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 83 | Ok(BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[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] warning: function `is_end` is never used
[INFO] [stdout] --> src/day8/main.rs:8:4
[INFO] [stdout] |
[INFO] [stdout] 8 | fn is_end(input: &Vec<&str>) -> bool {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: function `compute_steps_part1` is never used
[INFO] [stdout] --> src/day8/main.rs:17:4
[INFO] [stdout] |
[INFO] [stdout] 17 | fn compute_steps_part1<'a>(
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 1 previous error; 7 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/day3/main.rs:4:9
[INFO] [stdout] |
[INFO] [stdout] 4 | let mut graph = input
[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 import: `binary_heap`
[INFO] [stdout] --> src/day5/main.rs:3:19
[INFO] [stdout] |
[INFO] [stdout] 3 | collections::{binary_heap, BTreeSet, BinaryHeap},
[INFO] [stdout] | ^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unnecessary parentheses around pattern
[INFO] [stdout] --> src/day5/main.rs:143:9
[INFO] [stdout] |
[INFO] [stdout] 143 | for (seed) in seeds.iter() {
[INFO] [stdout] | ^ ^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout] |
[INFO] [stdout] 143 - for (seed) in seeds.iter() {
[INFO] [stdout] 143 + for seed in seeds.iter() {
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `AOC2023` (bin "day2") due to 2 previous errors; 7 warnings emitted
[INFO] [stdout] warning: unused variable: `m`
[INFO] [stdout] --> src/day3/main.rs:115:9
[INFO] [stdout] |
[INFO] [stdout] 115 | let m = matrix.len();
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `PRIORITY_MAP` should have a snake case name
[INFO] [stdout] --> src/day7/main.rs:28:9
[INFO] [stdout] |
[INFO] [stdout] 28 | let PRIORITY_MAP: HashMap = HashMap::from([
[INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `priority_map`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `PRIORITY_MAP` should have a snake case name
[INFO] [stdout] --> src/day7/main.rs:56:9
[INFO] [stdout] |
[INFO] [stdout] 56 | let PRIORITY_MAP: HashMap = HashMap::from([
[INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `priority_map`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout] --> src/day2/main.rs:37:21
[INFO] [stdout] |
[INFO] [stdout] 37 | let info = data
[INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `RED` should have a snake case name
[INFO] [stdout] --> src/day2/main.rs:20:9
[INFO] [stdout] |
[INFO] [stdout] 20 | let RED = 12;
[INFO] [stdout] | ^^^ help: convert the identifier to snake case: `red`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `GREEN` should have a snake case name
[INFO] [stdout] --> src/day2/main.rs:21:9
[INFO] [stdout] |
[INFO] [stdout] 21 | let GREEN = 13;
[INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `green`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `BLUE` should have a snake case name
[INFO] [stdout] --> src/day2/main.rs:22:9
[INFO] [stdout] |
[INFO] [stdout] 22 | let BLUE = 14;
[INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `blue`
[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/main.rs:83:8
[INFO] [stdout] |
[INFO] [stdout] 78 | fn read_lines(path: P) -> io::Result>>
[INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] ...
[INFO] [stdout] 82 | let file = File::open(path)?;
[INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] 83 | Ok(BufReader::new(file).lines())
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024
[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] warning: unused return value of `collect` that must be used
[INFO] [stdout] --> src/day3/main.rs:142:5
[INFO] [stdout] |
[INFO] [stdout] 142 | / matrix
[INFO] [stdout] 143 | | .iter()
[INFO] [stdout] 144 | | .map(|line| {
[INFO] [stdout] 145 | | let mut num: Option = None;
[INFO] [stdout] ... |
[INFO] [stdout] 163 | | })
[INFO] [stdout] 164 | | .collect::>();
[INFO] [stdout] | |____________________________^
[INFO] [stdout] |
[INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead
[INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 142 | let _ = matrix
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] error: aborting due to 1 previous error; 7 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 4 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] error: could not compile `AOC2023` (bin "day2" test) due to 2 previous errors; 7 warnings emitted
[INFO] [stdout] warning: unused variable: `idx`
[INFO] [stdout] --> src/day5/main.rs:173:14
[INFO] [stdout] |
[INFO] [stdout] 173 | for (idx, map) in maps.iter().enumerate() {
[INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable `State` should have a snake case name
[INFO] [stdout] --> src/day5/main.rs:76:13
[INFO] [stdout] |
[INFO] [stdout] 76 | let mut State: Option = None;
[INFO] [stdout] | ^^^^^ help: convert the identifier to snake case (notice the capitalization): `state`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused return value of `collect` that must be used
[INFO] [stdout] --> src/day5/main.rs:78:5
[INFO] [stdout] |
[INFO] [stdout] 78 | / input
[INFO] [stdout] 79 | | .lines()
[INFO] [stdout] 80 | | .map(|mut line| {
[INFO] [stdout] 81 | | line = line.trim();
[INFO] [stdout] ... |
[INFO] [stdout] 138 | | })
[INFO] [stdout] 139 | | .collect::>();
[INFO] [stdout] | |____________________________^
[INFO] [stdout] |
[INFO] [stdout] = note: if you really need to exhaust the iterator, consider `.for_each(drop)` instead
[INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 78 | let _ = input
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused return value of `core::str::::trim` that must be used
[INFO] [stdout] --> src/day5/main.rs:160:5
[INFO] [stdout] |
[INFO] [stdout] 160 | line.strip_prefix("seeds:").unwrap().trim();
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: this returns the trimmed string as a slice, without modifying the original
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout] |
[INFO] [stdout] 160 | let _ = line.strip_prefix("seeds:").unwrap().trim();
[INFO] [stdout] | +++++++
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 6 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] running `Command { std: "docker" "inspect" "b9bd48d65fdd162a7ca180b29a323f938a79ddec75873d480b23c38ba9c0f86d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b9bd48d65fdd162a7ca180b29a323f938a79ddec75873d480b23c38ba9c0f86d", kill_on_drop: false }`
[INFO] [stdout] b9bd48d65fdd162a7ca180b29a323f938a79ddec75873d480b23c38ba9c0f86d