[INFO] cloning repository https://github.com/SamanNsr/genetic-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SamanNsr/genetic-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSamanNsr%2Fgenetic-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSamanNsr%2Fgenetic-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ef5446abd206bdf5f0cb1795388c06dfd01e1a1a [INFO] checking SamanNsr/genetic-rs/ef5446abd206bdf5f0cb1795388c06dfd01e1a1a 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%2FSamanNsr%2Fgenetic-rs" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SamanNsr/genetic-rs 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/SamanNsr/genetic-rs [INFO] finished tweaking git repo https://github.com/SamanNsr/genetic-rs [INFO] tweaked toml for git repo https://github.com/SamanNsr/genetic-rs written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/SamanNsr/genetic-rs 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 44de6f42d33c9399387ef7eae1e0d094ce71468cf72fe8d87d75e03768dd4ceb [INFO] running `Command { std: "docker" "start" "-a" "44de6f42d33c9399387ef7eae1e0d094ce71468cf72fe8d87d75e03768dd4ceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "44de6f42d33c9399387ef7eae1e0d094ce71468cf72fe8d87d75e03768dd4ceb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44de6f42d33c9399387ef7eae1e0d094ce71468cf72fe8d87d75e03768dd4ceb", kill_on_drop: false }` [INFO] [stdout] 44de6f42d33c9399387ef7eae1e0d094ce71468cf72fe8d87d75e03768dd4ceb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 72f78b9154e57e887b1ecad020ad131ef1c7f71b5f3d8f6af729ba9126309ab1 [INFO] running `Command { std: "docker" "start" "-a" "72f78b9154e57e887b1ecad020ad131ef1c7f71b5f3d8f6af729ba9126309ab1", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Checking getrandom v0.2.10 [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 genetic-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `rand_chacha::rand_core::RngCore` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand_chacha::rand_core::RngCore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::chromosome::Chromosome` [INFO] [stdout] --> src/genetic.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::chromosome::Chromosome; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand_chacha::rand_core::RngCore` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand_chacha::rand_core::RngCore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::chromosome::Chromosome` [INFO] [stdout] --> src/genetic.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::chromosome::Chromosome; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `random_number` [INFO] [stdout] --> src/crossover/one_point.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let random_number = rng.gen::(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_random_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `random_number` [INFO] [stdout] --> src/crossover/one_point.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let random_number = rng.gen::(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_random_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chromosome` [INFO] [stdout] --> src/main.rs:104:36 [INFO] [stdout] | [INFO] [stdout] 104 | Self::WithChromosome { chromosome } => { [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `chromosome: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `WithFitness` is never constructed [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | enum OPIndividual { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 65 | WithChromosome { chromosome: Chromosome }, [INFO] [stdout] 66 | WithFitness { fitness: f32 }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OPIndividual` has a derived impl for the trait `Clone`, 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: associated function `new` is never used [INFO] [stdout] --> src/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 69 | impl OPIndividual { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 70 | fn new(fitness: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `median_fitness` is never read [INFO] [stdout] --> src/statistics.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Statistics { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | median_fitness: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `median_fitness` is never used [INFO] [stdout] --> src/statistics.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Statistics { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn median_fitness(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chromosome` [INFO] [stdout] --> src/main.rs:104:36 [INFO] [stdout] | [INFO] [stdout] 104 | Self::WithChromosome { chromosome } => { [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `chromosome: _` [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/genetic.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 21 | selection_method: S, [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | crossover_method: impl CrossoverMethod + 'static, [INFO] [stdout] | ------------------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | mutation_method: impl MutationMethod + 'static, [INFO] [stdout] | ---------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | crossover_method: Box::new(crossover_method), [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/genetic.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 21 | selection_method: S, [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | crossover_method: impl CrossoverMethod + 'static, [INFO] [stdout] | ------------------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | mutation_method: impl MutationMethod + 'static, [INFO] [stdout] | ---------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 28 | mutation_method: Box::new(mutation_method), [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/chromosome.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 32 | fn from_iter>(iter: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | Self { [INFO] [stdout] 34 | genes: iter.into_iter().collect(), [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 3 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `WithFitness` is never constructed [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | enum OPIndividual { [INFO] [stdout] | ------------ variant in this enum [INFO] [stdout] 65 | WithChromosome { chromosome: Chromosome }, [INFO] [stdout] 66 | WithFitness { fitness: f32 }, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OPIndividual` has a derived impl for the trait `Clone`, 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: associated function `new` is never used [INFO] [stdout] --> src/main.rs:70:8 [INFO] [stdout] | [INFO] [stdout] 69 | impl OPIndividual { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 70 | fn new(fitness: f32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `median_fitness` is never read [INFO] [stdout] --> src/statistics.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Statistics { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | median_fitness: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `median_fitness` is never used [INFO] [stdout] --> src/statistics.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Statistics { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn median_fitness(&self) -> f32 { [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/genetic.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 21 | selection_method: S, [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | crossover_method: impl CrossoverMethod + 'static, [INFO] [stdout] | ------------------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | mutation_method: impl MutationMethod + 'static, [INFO] [stdout] | ---------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 27 | crossover_method: Box::new(crossover_method), [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/genetic.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 21 | selection_method: S, [INFO] [stdout] | ------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 22 | crossover_method: impl CrossoverMethod + 'static, [INFO] [stdout] | ------------------------------------------------ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 23 | mutation_method: impl MutationMethod + 'static, [INFO] [stdout] | ---------------------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 28 | mutation_method: Box::new(mutation_method), [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/chromosome.rs:34:20 [INFO] [stdout] | [INFO] [stdout] 32 | fn from_iter>(iter: T) -> Self { [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 33 | Self { [INFO] [stdout] 34 | genes: iter.into_iter().collect(), [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 3 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `genetic-rs` (bin "genetic-rs" test) due to 4 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `genetic-rs` (bin "genetic-rs") due to 4 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "72f78b9154e57e887b1ecad020ad131ef1c7f71b5f3d8f6af729ba9126309ab1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72f78b9154e57e887b1ecad020ad131ef1c7f71b5f3d8f6af729ba9126309ab1", kill_on_drop: false }` [INFO] [stdout] 72f78b9154e57e887b1ecad020ad131ef1c7f71b5f3d8f6af729ba9126309ab1