[INFO] cloning repository https://github.com/neffmallon/AoC_Rust_2022 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/neffmallon/AoC_Rust_2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fneffmallon%2FAoC_Rust_2022", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fneffmallon%2FAoC_Rust_2022'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1e24b2ce03a80271a1d45a6ac3b4fa27911a8150 [INFO] checking neffmallon/AoC_Rust_2022 against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fneffmallon%2FAoC_Rust_2022" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/neffmallon/AoC_Rust_2022 on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/neffmallon/AoC_Rust_2022 [INFO] finished tweaking git repo https://github.com/neffmallon/AoC_Rust_2022 [INFO] tweaked toml for git repo https://github.com/neffmallon/AoC_Rust_2022 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/neffmallon/AoC_Rust_2022 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a75ea94c3f7fedc34ceed54e5845c6b24c58dec3309a90ac7d42d3535582eb8c [INFO] running `Command { std: "docker" "start" "-a" "a75ea94c3f7fedc34ceed54e5845c6b24c58dec3309a90ac7d42d3535582eb8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a75ea94c3f7fedc34ceed54e5845c6b24c58dec3309a90ac7d42d3535582eb8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a75ea94c3f7fedc34ceed54e5845c6b24c58dec3309a90ac7d42d3535582eb8c", kill_on_drop: false }` [INFO] [stdout] a75ea94c3f7fedc34ceed54e5845c6b24c58dec3309a90ac7d42d3535582eb8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca7c74125f04a3d0d5c93d02403c6088c128448c8facdbd27b3959e671931def [INFO] running `Command { std: "docker" "start" "-a" "ca7c74125f04a3d0d5c93d02403c6088c128448c8facdbd27b3959e671931def", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking indexmap v2.2.3 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking rust_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/day_19.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | 'pop_increase: for n in 0..10 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `part_1` [INFO] [stdout] --> src/main.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use day_19::{part_1,part_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/day_19.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | 'pop_increase: for n in 0..10 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `part_1` [INFO] [stdout] --> src/main.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use day_19::{part_1,part_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generation` [INFO] [stdout] --> src/day_19.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | 'outer: for generation in 0..n_generations { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generation` [INFO] [stdout] --> src/day_19.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | 'outer: for generation in 0..n_generations { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_19.rs:375:29 [INFO] [stdout] | [INFO] [stdout] 375 | babies.dedup_by(|a, b| outputs.contains_key(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_19.rs:385:41 [INFO] [stdout] | [INFO] [stdout] 385 | babies.dedup_by(|a, b| outputs.contains_key(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_19.rs:375:29 [INFO] [stdout] | [INFO] [stdout] 375 | babies.dedup_by(|a, b| outputs.contains_key(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_19.rs:385:41 [INFO] [stdout] | [INFO] [stdout] 385 | babies.dedup_by(|a, b| outputs.contains_key(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Organism` is never constructed [INFO] [stdout] --> src/day_19.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Organism(Vec); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENOME_SIZE` is never used [INFO] [stdout] --> src/day_19.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const GENOME_SIZE: usize = 20; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repair_genes` is never used [INFO] [stdout] --> src/day_19.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn repair_genes(genes: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_organism` is never used [INFO] [stdout] --> src/day_19.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn generate_organism()-> Organism{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mate_pair` is never used [INFO] [stdout] --> src/day_19.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn mate_pair(a: &Organism, b: &Organism) -> Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutate_babies` is never used [INFO] [stdout] --> src/day_19.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn mutate_babies(babies: &[Organism]) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `idx` is never read [INFO] [stdout] --> src/day_19.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | struct Blueprint{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 110 | idx: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blueprint` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Robots` is never used [INFO] [stdout] --> src/day_19.rs:119:6 [INFO] [stdout] | [INFO] [stdout] 119 | enum Robots{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ints_to_bots` is never used [INFO] [stdout] --> src/day_19.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn ints_to_bots(v: &[u8])-> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_turn` is never used [INFO] [stdout] --> src/day_19.rs:246:4 [INFO] [stdout] | [INFO] [stdout] 246 | fn do_turn(state: &State, blueprint: &Blueprint, targets: &[Robots], purchase_idx: usize, max_turns: u8) -> (State, usize){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Organism` is never constructed [INFO] [stdout] --> src/day_19.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Organism(Vec); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_simulation` is never used [INFO] [stdout] --> src/day_19.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn run_simulation(blueprint: &Blueprint, organism: &Organism, max_turns:u8) -> u8{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `optimize_blueprint` is never used [INFO] [stdout] --> src/day_19.rs:304:4 [INFO] [stdout] | [INFO] [stdout] 304 | fn optimize_blueprint(blueprint: &Blueprint, population_size: usize, n_generations: usize, max_turns:u8) -> (u8, HashMap){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day_19.rs:500:15 [INFO] [stdout] | [INFO] [stdout] 500 | pub(crate) fn part_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENOME_SIZE` is never used [INFO] [stdout] --> src/day_19.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const GENOME_SIZE: usize = 20; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repair_genes` is never used [INFO] [stdout] --> src/day_19.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn repair_genes(genes: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_organism` is never used [INFO] [stdout] --> src/day_19.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn generate_organism()-> Organism{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mate_pair` is never used [INFO] [stdout] --> src/day_19.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn mate_pair(a: &Organism, b: &Organism) -> Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutate_babies` is never used [INFO] [stdout] --> src/day_19.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn mutate_babies(babies: &[Organism]) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `idx` is never read [INFO] [stdout] --> src/day_19.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | struct Blueprint{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 110 | idx: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blueprint` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Robots` is never used [INFO] [stdout] --> src/day_19.rs:119:6 [INFO] [stdout] | [INFO] [stdout] 119 | enum Robots{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ints_to_bots` is never used [INFO] [stdout] --> src/day_19.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn ints_to_bots(v: &[u8])-> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_turn` is never used [INFO] [stdout] --> src/day_19.rs:246:4 [INFO] [stdout] | [INFO] [stdout] 246 | fn do_turn(state: &State, blueprint: &Blueprint, targets: &[Robots], purchase_idx: usize, max_turns: u8) -> (State, usize){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_simulation` is never used [INFO] [stdout] --> src/day_19.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn run_simulation(blueprint: &Blueprint, organism: &Organism, max_turns:u8) -> u8{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `optimize_blueprint` is never used [INFO] [stdout] --> src/day_19.rs:304:4 [INFO] [stdout] | [INFO] [stdout] 304 | fn optimize_blueprint(blueprint: &Blueprint, population_size: usize, n_generations: usize, max_turns:u8) -> (u8, HashMap){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day_19.rs:500:15 [INFO] [stdout] | [INFO] [stdout] 500 | pub(crate) fn part_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.34s [INFO] running `Command { std: "docker" "inspect" "ca7c74125f04a3d0d5c93d02403c6088c128448c8facdbd27b3959e671931def", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca7c74125f04a3d0d5c93d02403c6088c128448c8facdbd27b3959e671931def", kill_on_drop: false }` [INFO] [stdout] ca7c74125f04a3d0d5c93d02403c6088c128448c8facdbd27b3959e671931def [INFO] checking neffmallon/AoC_Rust_2022 against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fneffmallon%2FAoC_Rust_2022" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/neffmallon/AoC_Rust_2022 on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/neffmallon/AoC_Rust_2022 [INFO] finished tweaking git repo https://github.com/neffmallon/AoC_Rust_2022 [INFO] tweaked toml for git repo https://github.com/neffmallon/AoC_Rust_2022 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/neffmallon/AoC_Rust_2022 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57ac6586af1a6cef7fcd97f3b0a66265a96267d28cd7d04d4f9351351aca62af [INFO] running `Command { std: "docker" "start" "-a" "57ac6586af1a6cef7fcd97f3b0a66265a96267d28cd7d04d4f9351351aca62af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57ac6586af1a6cef7fcd97f3b0a66265a96267d28cd7d04d4f9351351aca62af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57ac6586af1a6cef7fcd97f3b0a66265a96267d28cd7d04d4f9351351aca62af", kill_on_drop: false }` [INFO] [stdout] 57ac6586af1a6cef7fcd97f3b0a66265a96267d28cd7d04d4f9351351aca62af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 662a61f8216a4aacc35fba479bfac825ac6369c1ecc652653be7e1e60340bbf1 [INFO] running `Command { std: "docker" "start" "-a" "662a61f8216a4aacc35fba479bfac825ac6369c1ecc652653be7e1e60340bbf1", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking indexmap v2.2.3 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking petgraph v0.6.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking num v0.4.1 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking rust_of_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/day_19.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | 'pop_increase: for n in 0..10 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/day_19.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | 'pop_increase: for n in 0..10 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `part_1` [INFO] [stdout] --> src/main.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use day_19::{part_1,part_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `part_1` [INFO] [stdout] --> src/main.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use day_19::{part_1,part_2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generation` [INFO] [stdout] --> src/day_19.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | 'outer: for generation in 0..n_generations { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `generation` [INFO] [stdout] --> src/day_19.rs:317:17 [INFO] [stdout] | [INFO] [stdout] 317 | 'outer: for generation in 0..n_generations { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_generation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_19.rs:375:29 [INFO] [stdout] | [INFO] [stdout] 375 | babies.dedup_by(|a, b| outputs.contains_key(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_19.rs:375:29 [INFO] [stdout] | [INFO] [stdout] 375 | babies.dedup_by(|a, b| outputs.contains_key(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_19.rs:385:41 [INFO] [stdout] | [INFO] [stdout] 385 | babies.dedup_by(|a, b| outputs.contains_key(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/day_19.rs:385:41 [INFO] [stdout] | [INFO] [stdout] 385 | babies.dedup_by(|a, b| outputs.contains_key(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Organism` is never constructed [INFO] [stdout] --> src/day_19.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Organism(Vec); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Organism` is never constructed [INFO] [stdout] --> src/day_19.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Organism(Vec); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENOME_SIZE` is never used [INFO] [stdout] --> src/day_19.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const GENOME_SIZE: usize = 20; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENOME_SIZE` is never used [INFO] [stdout] --> src/day_19.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const GENOME_SIZE: usize = 20; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repair_genes` is never used [INFO] [stdout] --> src/day_19.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn repair_genes(genes: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_organism` is never used [INFO] [stdout] --> src/day_19.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn generate_organism()-> Organism{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `repair_genes` is never used [INFO] [stdout] --> src/day_19.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn repair_genes(genes: &mut Vec) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mate_pair` is never used [INFO] [stdout] --> src/day_19.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn mate_pair(a: &Organism, b: &Organism) -> Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_organism` is never used [INFO] [stdout] --> src/day_19.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn generate_organism()-> Organism{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutate_babies` is never used [INFO] [stdout] --> src/day_19.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn mutate_babies(babies: &[Organism]) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mate_pair` is never used [INFO] [stdout] --> src/day_19.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn mate_pair(a: &Organism, b: &Organism) -> Vec{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `idx` is never read [INFO] [stdout] --> src/day_19.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | struct Blueprint{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 110 | idx: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blueprint` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Robots` is never used [INFO] [stdout] --> src/day_19.rs:119:6 [INFO] [stdout] | [INFO] [stdout] 119 | enum Robots{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ints_to_bots` is never used [INFO] [stdout] --> src/day_19.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn ints_to_bots(v: &[u8])-> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutate_babies` is never used [INFO] [stdout] --> src/day_19.rs:84:4 [INFO] [stdout] | [INFO] [stdout] 84 | fn mutate_babies(babies: &[Organism]) -> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_turn` is never used [INFO] [stdout] --> src/day_19.rs:246:4 [INFO] [stdout] | [INFO] [stdout] 246 | fn do_turn(state: &State, blueprint: &Blueprint, targets: &[Robots], purchase_idx: usize, max_turns: u8) -> (State, usize){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_simulation` is never used [INFO] [stdout] --> src/day_19.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn run_simulation(blueprint: &Blueprint, organism: &Organism, max_turns:u8) -> u8{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `idx` is never read [INFO] [stdout] --> src/day_19.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 109 | struct Blueprint{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 110 | idx: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Blueprint` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Robots` is never used [INFO] [stdout] --> src/day_19.rs:119:6 [INFO] [stdout] | [INFO] [stdout] 119 | enum Robots{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `optimize_blueprint` is never used [INFO] [stdout] --> src/day_19.rs:304:4 [INFO] [stdout] | [INFO] [stdout] 304 | fn optimize_blueprint(blueprint: &Blueprint, population_size: usize, n_generations: usize, max_turns:u8) -> (u8, HashMap){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ints_to_bots` is never used [INFO] [stdout] --> src/day_19.rs:164:4 [INFO] [stdout] | [INFO] [stdout] 164 | fn ints_to_bots(v: &[u8])-> Vec{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `part_1` is never used [INFO] [stdout] --> src/day_19.rs:500:15 [INFO] [stdout] | [INFO] [stdout] 500 | pub(crate) fn part_1() { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `do_turn` is never used [INFO] [stdout] --> src/day_19.rs:246:4 [INFO] [stdout] | [INFO] [stdout] 246 | fn do_turn(state: &State, blueprint: &Blueprint, targets: &[Robots], purchase_idx: usize, max_turns: u8) -> (State, usize){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_simulation` is never used [INFO] [stdout] --> src/day_19.rs:293:4 [INFO] [stdout] | [INFO] [stdout] 293 | fn run_simulation(blueprint: &Blueprint, organism: &Organism, max_turns:u8) -> u8{ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `optimize_blueprint` is never used [INFO] [stdout] --> src/day_19.rs:304:4 [INFO] [stdout] | [INFO] [stdout] 304 | fn optimize_blueprint(blueprint: &Blueprint, population_size: usize, n_generations: usize, max_turns:u8) -> (u8, HashMap){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [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/general_helpers.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 6 | where P: AsRef, { [INFO] [stdout] 7 | let file = File::open(filename)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 8 | Ok(io::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 `part_1` is never used [INFO] [stdout] --> src/day_19.rs:500:15 [INFO] [stdout] | [INFO] [stdout] 500 | pub(crate) fn part_1() { [INFO] [stdout] | ^^^^^^ [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/general_helpers.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub(crate) fn read_lines

(filename: P) -> io::Result>> [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 6 | where P: AsRef, { [INFO] [stdout] 7 | let file = File::open(filename)?; [INFO] [stdout] | ---- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 8 | Ok(io::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; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_of_code` (bin "rust_of_code" test) due to 2 previous errors; 18 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_of_code` (bin "rust_of_code") due to 2 previous errors; 18 warnings emitted [INFO] running `Command { std: "docker" "inspect" "662a61f8216a4aacc35fba479bfac825ac6369c1ecc652653be7e1e60340bbf1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "662a61f8216a4aacc35fba479bfac825ac6369c1ecc652653be7e1e60340bbf1", kill_on_drop: false }` [INFO] [stdout] 662a61f8216a4aacc35fba479bfac825ac6369c1ecc652653be7e1e60340bbf1