[INFO] cloning repository https://github.com/GregoireLoens/GeneticAlgorithm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GregoireLoens/GeneticAlgorithm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGregoireLoens%2FGeneticAlgorithm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGregoireLoens%2FGeneticAlgorithm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7b26d886e591820ecdacd0898ab9d3b308aabeef [INFO] building GregoireLoens/GeneticAlgorithm/7b26d886e591820ecdacd0898ab9d3b308aabeef against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGregoireLoens%2FGeneticAlgorithm" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GregoireLoens/GeneticAlgorithm on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GregoireLoens/GeneticAlgorithm [INFO] finished tweaking git repo https://github.com/GregoireLoens/GeneticAlgorithm [INFO] tweaked toml for git repo https://github.com/GregoireLoens/GeneticAlgorithm written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/GregoireLoens/GeneticAlgorithm 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tramp v0.3.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fece50f6dee56bc42d230ad7572433f65e33f03c6ce117e6663489fc702a8c3f [INFO] running `Command { std: "docker" "start" "-a" "fece50f6dee56bc42d230ad7572433f65e33f03c6ce117e6663489fc702a8c3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fece50f6dee56bc42d230ad7572433f65e33f03c6ce117e6663489fc702a8c3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fece50f6dee56bc42d230ad7572433f65e33f03c6ce117e6663489fc702a8c3f", kill_on_drop: false }` [INFO] [stdout] fece50f6dee56bc42d230ad7572433f65e33f03c6ce117e6663489fc702a8c3f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] aa381dffda1a5f481d37a5e909e6a69e1e6e6abd602bed8eda8a05220b03472c [INFO] running `Command { std: "docker" "start" "-a" "aa381dffda1a5f481d37a5e909e6a69e1e6e6abd602bed8eda8a05220b03472c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Compiling tramp v0.3.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.3 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling GeneticAlgorithm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem/selection.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | for i in 0..nb_turn { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `win1` [INFO] [stdout] --> src/problem/selection.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let win1: usize; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_win1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `win2` [INFO] [stdout] --> src/problem/selection.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let win2: usize; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_win2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem/selection.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for i in 0..t_size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem/crossover.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | for i in 0..k { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/problem/mutation.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut index: usize; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | for i in 0..parent.pop.len() / 2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best_child` is never read [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut best_child = problem::data::IndiData::new(); [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 variable: `it` [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | for it in 0..problem::data::MAXIT { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_it` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/main.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 52 | let (mut new_parent,mut new_data, clone_tx) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:52:33 [INFO] [stdout] | [INFO] [stdout] 52 | let (mut new_parent,mut new_data, clone_tx) [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 `Result` that must be used [INFO] [stdout] --> src/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | clone_tx.send(generate_child(&mut new_parent, &mut new_data)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = clone_tx.send(generate_child(&mut new_parent, &mut new_data)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.47s [INFO] running `Command { std: "docker" "inspect" "aa381dffda1a5f481d37a5e909e6a69e1e6e6abd602bed8eda8a05220b03472c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aa381dffda1a5f481d37a5e909e6a69e1e6e6abd602bed8eda8a05220b03472c", kill_on_drop: false }` [INFO] [stdout] aa381dffda1a5f481d37a5e909e6a69e1e6e6abd602bed8eda8a05220b03472c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dd307bb53c1e84ab94a1e933589aa22b59261a5876ac31ba4db6cbd480f5fec7 [INFO] running `Command { std: "docker" "start" "-a" "dd307bb53c1e84ab94a1e933589aa22b59261a5876ac31ba4db6cbd480f5fec7", kill_on_drop: false }` [INFO] [stderr] Compiling GeneticAlgorithm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem/selection.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | for i in 0..nb_turn { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `win1` [INFO] [stdout] --> src/problem/selection.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | let win1: usize; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_win1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `win2` [INFO] [stdout] --> src/problem/selection.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let win2: usize; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_win2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem/selection.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | for i in 0..t_size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/problem/crossover.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | for i in 0..k { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/problem/mutation.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut index: usize; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | for i in 0..parent.pop.len() / 2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `best_child` is never read [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut best_child = problem::data::IndiData::new(); [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 variable: `it` [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | for it in 0..problem::data::MAXIT { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_it` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_data` [INFO] [stdout] --> src/main.rs:52:37 [INFO] [stdout] | [INFO] [stdout] 52 | let (mut new_parent,mut new_data, clone_tx) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:52:33 [INFO] [stdout] | [INFO] [stdout] 52 | let (mut new_parent,mut new_data, clone_tx) [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 `Result` that must be used [INFO] [stdout] --> src/main.rs:56:17 [INFO] [stdout] | [INFO] [stdout] 56 | clone_tx.send(generate_child(&mut new_parent, &mut new_data)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 56 | let _ = clone_tx.send(generate_child(&mut new_parent, &mut new_data)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "dd307bb53c1e84ab94a1e933589aa22b59261a5876ac31ba4db6cbd480f5fec7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dd307bb53c1e84ab94a1e933589aa22b59261a5876ac31ba4db6cbd480f5fec7", kill_on_drop: false }` [INFO] [stdout] dd307bb53c1e84ab94a1e933589aa22b59261a5876ac31ba4db6cbd480f5fec7