[INFO] cloning repository https://github.com/RodolpheFouquet/AOC2023 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RodolpheFouquet/AOC2023" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRodolpheFouquet%2FAOC2023", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRodolpheFouquet%2FAOC2023'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 63f6c23d048f6e7e51bf036a90d408974a5245f5 [INFO] checking RodolpheFouquet/AOC2023/63f6c23d048f6e7e51bf036a90d408974a5245f5 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%2FRodolpheFouquet%2FAOC2023" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RodolpheFouquet/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/RodolpheFouquet/AOC2023 [INFO] finished tweaking git repo https://github.com/RodolpheFouquet/AOC2023 [INFO] tweaked toml for git repo https://github.com/RodolpheFouquet/AOC2023 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/RodolpheFouquet/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] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] ba5d8003ed7b313e15106de10523f9bbffb7597ad44e00a712d2dda6dedf4145 [INFO] running `Command { std: "docker" "start" "-a" "ba5d8003ed7b313e15106de10523f9bbffb7597ad44e00a712d2dda6dedf4145", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba5d8003ed7b313e15106de10523f9bbffb7597ad44e00a712d2dda6dedf4145", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba5d8003ed7b313e15106de10523f9bbffb7597ad44e00a712d2dda6dedf4145", kill_on_drop: false }` [INFO] [stdout] ba5d8003ed7b313e15106de10523f9bbffb7597ad44e00a712d2dda6dedf4145 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 6996fdf1999c31e36b43a967ac8952083e89cd62a88bbd5334e97d9268773d93 [INFO] running `Command { std: "docker" "start" "-a" "6996fdf1999c31e36b43a967ac8952083e89cd62a88bbd5334e97d9268773d93", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling priority-queue v1.3.2 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking day2 v0.1.0 (/opt/rustwide/workdir/day2) [INFO] [stderr] Checking day4 v0.1.0 (/opt/rustwide/workdir/day4) [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> day2/src/main.rs:24:74 [INFO] [stdout] | [INFO] [stdout] 24 | let number = components.first().unwrap().parse::().map_err(|e| String::from("unable to parse int for move"))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> day2/src/main.rs:94:91 [INFO] [stdout] | [INFO] [stdout] 94 | let id = components.first().unwrap().replace("Game ", "").parse::().map_err(|e| String::from("invalid game id"))?; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST` is never used [INFO] [stdout] --> day2/src/main.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const TEST: &str= r#"Game 1: 3 blue, 4 red; 1 red, 2 green, 6 blue; 2 green [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day5 v0.1.0 (/opt/rustwide/workdir/day5) [INFO] [stderr] Checking itertools v0.12.0 [INFO] [stdout] warning: constant `TEST` is never used [INFO] [stdout] --> day4/src/main.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const TEST : &str = r#"Card 1: 41 48 83 86 17 | 83 86 6 31 17 9 48 53 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day6 v0.1.0 (/opt/rustwide/workdir/day6) [INFO] [stderr] Checking day11 v0.1.0 (/opt/rustwide/workdir/day11) [INFO] [stdout] warning: unused variable: `names` [INFO] [stdout] --> day5/src/main.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let names: Vec = split[1..].iter().map(|c| c.lines().collect::>()[0].replace(":", "")).collect(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_names` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> day5/src/main.rs:115:17 [INFO] [stdout] | [INFO] [stdout] 115 | let mut i = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> day5/src/main.rs:115:13 [INFO] [stdout] | [INFO] [stdout] 115 | let mut i = 1; [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: `m` [INFO] [stdout] --> day5/src/main.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | let m : Map = include_str!("../input.txt").into(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST` is never used [INFO] [stdout] --> day5/src/main.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const TEST: &str = r#"seeds: 79 14 55 13 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `seeds` is never read [INFO] [stdout] --> day5/src/main.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct Map { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 63 | seeds: Vec, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day10 v0.1.0 (/opt/rustwide/workdir/day10) [INFO] [stdout] warning: constant `TEST` is never used [INFO] [stdout] --> day6/src/main.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | const TEST : &str = r#"Time: 7 15 30 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking day1 v0.1.0 (/opt/rustwide/workdir/day1) [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> day11/src/main.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let height = expanded_galaxy.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `height` [INFO] [stdout] --> day11/src/main.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let height = galaxies.len(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> day11/src/main.rs:55:23 [INFO] [stdout] | [INFO] [stdout] 55 | .filter(|(pos, &c)| c=='#') [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> day11/src/main.rs:56:25 [INFO] [stdout] | [INFO] [stdout] 56 | .map(|(pos, c)| ((pos%width) as i64, (pos/width) as i64)).collect::>(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> day11/src/main.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | .filter(|(pos, line)| line.chars().all(|c| c=='.')) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> day11/src/main.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | .map(|(pos, line)| pos as i64).collect::>(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> day11/src/main.rs:79:99 [INFO] [stdout] | [INFO] [stdout] 79 | ...()).iter().enumerate().filter(|(pos, col)| col.iter().all(|c| *c=='.')).map(|(pos, col)| pos as i64).collect::>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> day11/src/main.rs:79:150 [INFO] [stdout] | [INFO] [stdout] 79 | ...().all(|c| *c=='.')).map(|(pos, col)| pos as i64).collect::>(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos` [INFO] [stdout] --> day11/src/main.rs:86:23 [INFO] [stdout] | [INFO] [stdout] 86 | .filter(|(pos, c)| *c=='#') [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pos` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> day11/src/main.rs:87:25 [INFO] [stdout] | [INFO] [stdout] 87 | .map(|(pos, c)| ((pos%width) as i64, (pos/width) as i64)).collect::>(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST` is never used [INFO] [stdout] --> day11/src/main.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const TEST: &str = r#"...#...... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` 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] --> day11/src/main.rs:21:26 [INFO] [stdout] | [INFO] [stdout] 21 | .map(|n| n.next().unwrap()) [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: aborting due to 1 previous error; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_dist` [INFO] [stdout] --> day10/src/main.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 141 | let max_dist = res.len()/2; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_dist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `day11` (bin "day11") due to 2 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `node` [INFO] [stdout] --> day10/src/main.rs:145:15 [INFO] [stdout] | [INFO] [stdout] 145 | for (pos, node) in nodes.iter().enumerate() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST` is never used [INFO] [stdout] --> day10/src/main.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const TEST: &str = r#"..F7. [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST2` is never used [INFO] [stdout] --> day10/src/main.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const TEST2: &str = r#"FF7FSF7F7F7F7F7F---7 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST` is never used [INFO] [stdout] --> day1/src/main.rs:2:7 [INFO] [stdout] | [INFO] [stdout] 2 | const TEST: &str = r#"1abc2 [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEST_2` is never used [INFO] [stdout] --> day1/src/main.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | const TEST_2: &str = r#"two1nine [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6996fdf1999c31e36b43a967ac8952083e89cd62a88bbd5334e97d9268773d93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6996fdf1999c31e36b43a967ac8952083e89cd62a88bbd5334e97d9268773d93", kill_on_drop: false }` [INFO] [stdout] 6996fdf1999c31e36b43a967ac8952083e89cd62a88bbd5334e97d9268773d93